【问题标题】:How to change the aspect ratio in publishing with WebRTC for Ant Media Server?如何更改 Ant Media Server 的 WebRTC 发布时的纵横比?
【发布时间】:2020-05-19 07:47:49
【问题描述】:

我想在 Ant Media Server 中使用不同的纵横比进行 WebRTC 发布。

如何改变它?

【问题讨论】:

    标签: webrtc ant-media-server


    【解决方案1】:

    可以打开/usr/local/antmedia/WebRTCAppEE/WEB-INF/index.html下的index.html文件

    并更改下面的行

    var mediaConstraints = {
        video : true,
        audio : true
    };
    

    var mediaConstraints = {
        video :  { aspectRatio: 16/9 },
        audio : true
    };
    

    您也可以使用 4/3 作为纵横比。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-15
    • 2015-07-04
    • 1970-01-01
    • 1970-01-01
    • 2023-02-23
    • 2019-12-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多