在Safari或iOS移动设备中,无法从WebRTC peerConnection获取远程流。

huangapple go评论76阅读模式
英文:

getRemoteStreams from webRTC peerConnection undefined in safari or mobile IOS

问题

I was build video call App using webRTC. The app was running smoothly until I tried using safari browser on mac and Chrome browser on Mobile IOS. The error was occur when I get the remote/local stream for my Video Tag sources. The error looks like this :

TypeError: e.getRemoteStreams is not a function. (In 'e.getRemoteStreams()', 'e.getRemoteStreams' is undefined)

I tried in chrome dekstop was work perfectly, Any idea the alternatives to get mediaStream from peerConnection except getRemoteStreams() and getLocalStreams() ?

英文:

I was build video call App using webRTC. The app was running smoothly until I tried using safari browser on mac and Chrome browser on Mobile IOS. The error was occur when I get the remote/local stream for my Video Tag sources. The error looks like this :

TypeError: e.getRemoteStreams is not a function. (In 'e.getRemoteStreams()', 'e.getRemoteStreams' is undefined)

I tried in chrome dekstop was work perfectly, Any idea the alternatives to get mediaStream from peerConnection except getRemoteStreams() and getLocalStreams() ?

答案1

得分: 0

I already found the solution, getLocalStreams() and getRemoteStreams() function was already deprecated, not all browser still support, safari and mobile browser i.e chrome, safari. So, you can go here for the alternatives way to get the local/remote streams.

英文:

I already found the solution, getLocalStreams() and getRemoteStreams() function was already deprecated, not all browser still support, safari and mobile browser i.e chrome, safari. So, you can go here for the alternatives way to get the local/remote streams.

huangapple
  • 本文由 发表于 2023年6月8日 20:50:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432035.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定