Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Video.js plugin does not use the provided iceServers

Open wheelbarrow777 opened this issue 10 months ago • 1 comments

Short description

In https://github.com/ant-media/videojs-webrtc-plugin, the iceServers provided in the player.src() call is not used in the NPM package.

player.src({
  src: 'ws://localhost:5080/LiveApp/stream1.webrtc',
  iceServers: '[ { "urls": "stun:stun1.l.google.com:19302" } ]'
});

In https://www.npmjs.com/package/@antmedia/videojs-webrtc-plugin?activeTab=code, navigate to /dist/videojs-webrtc-plugin.js. At line 3858, the RTCPeerConnection config used is this.peerconnection_config. this.peerconnection_config is defined once and never changed at line 2869.

Correct behavior would be to change line 3858 to this.remotePeerConnection[streamId] = new RTCPeerConnection(this.pcConfig);, as this.pcConfig is the configuration parsed from the src.

wheelbarrow777 avatar Apr 23 '24 08:04 wheelbarrow777

Hi @wheelbarrow777,

Thank you for the report. We've put it to the backlog.

If you want us to make this a priority, please reach out to [email protected] or continue your discussion with the support channel.

Cheers Oguz

mekya avatar May 06 '24 10:05 mekya