简体   繁体   English

从iOS应用程序拨打电话时,Android上的本地Web RTC视频通话冻结

[英]Native Web RTC Video Call freeze on Android when call from iOS app

We're implementing video calls on Android & iOS applications using WebRTC technology. 我们正在使用WebRTC技术在Android和iOS应用上实现视频通话。

We also implemented on web browser and call successfully from chrome to android, and chrome to iOS. 我们还在网络浏览器上实现了chrome和android,而chrome和iOS则成功调用。

But, when we call from iOS native to Android native, the video call always freeze after ~ 2 minutes. 但是,当我们从iOS本机呼叫到Android本机呼叫时,视频通话总是在2分钟后冻结。 The Audio is still work, but the video stream freeze. 音频仍然有效,但是视频流冻结。

We researched this problem very hard, even we tried to modify SDP content of Offer & Answer as this Article described ( https://medium.com/@fippo/when-a-browser-update-breaks-your-native-app-for-a-change-3845b30ea185 ). 我们非常努力地研究了这个问题,即使我们试图按照本文所述修改“要约与回答”的SDP内容( https://medium.com/@fippo/when-a-browser-update-breaks-your-native-app-换3845b30ea185 )。

We also thought maybe the cause of problem is H264 codecs of iOS, so we tried to replace VP9 to H264 in SDP content like the codes below, but no luck. 我们还认为问题的原因可能是iOS的H264编解码器,因此我们尝试将SDP内容中的VP9替换为H264,如以下代码所示,但没有运气。

private String modifySdp(String sdp) {
    return sdp.replace("VP9/90000", "H264/90000\r\n"
            + "a=fmtp:101 profile-level-id=42e01f;packetization-mode=1")
            .replace("a=rtpmap:100 VP8/90000", "a=rtpmap:100 VP8/90000\r\n"
                    +"a=fmtp:100 profile-level-id=42e01f;packetization-mode=1");
}

We need to implement this video call feature to make it possible to call from iOS to Android and vice versa for application business. 我们需要实现此视频通话功能,以使从iOS到Android的呼叫成为可能,反之亦然。

We think WebRTC is very good technology but maybe we didn't understand enough it's specifications. 我们认为WebRTC是一项非常好的技术,但也许我们对它的规范不够了解。

So please help us if you know any information. 因此,如果您知道任何信息,请帮助我们。

We appreciate very much your help. 非常感谢您的帮助。

就我而言,根本原因是iOS捕获了大视频,因此解决方案是缩小iOS上的mediaStream,并且不再冻结。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM