1. If i upgrade to the latest videojs player, Would the problem would be auto fixed or we have to customize target params in the videojs-antmedia-webrtc.js. (Upgrading to the latest version would be painful, bcz a lot of testing would required in staging and production environment).
2. Can we customize the target params in the first version of videojs player, will it work ?
Question
rahul7827
Hello Team
Hope you are doing well as always.
Currently I am facing issue in the player side, I am using the Initial version of AMS videojs-webrtc player, where configurations are accepted as :
this.options.mediaServerUrl = options.streamUrl.split('?')[0]; this.options.streamName = this.getUrlParameter('streamId'); this.options.token = this.getUrlParameter('token'); this.options.subscriberId = this.getUrlParameter('subscriberId'); this.options.subscriberCode = this.getUrlParameter('subscriberCode'); this.webRTCAdaptor = new WebRTCAdaptor({ websocketUrl: this.options.mediaServerUrl,
In the player side I am doing this like :
const rooms = "wss://Domain.tld/AppName/websocket?target=origin&streamId="+this.room; const iceServers = '[ { "urls": "stun:stun1.l.google.com:19302" } ]'; const examplePlayer = this.player; const streamUrl = rooms if (window.antmediaWebrtc) { window.antmediaWebrtc.webRTCAdaptor.stop(window.antmediaWebrtc.options.streamName) return window.antmediaWebrtc.initiateWebRTCAdaptor({ streamUrl, iceServers, }); }
While debugging videojs-antmedia-webrtc.js I found "this.options.mediaServerUrl = options.streamUrl.split('?')[0];"
Due to which my websocket url parameter "target=origin" is ignored, and i am getting error "websocket connection failed".
Also in the latest version (AMS videojs, not tried as of now) i found this :
ws://[ant-address]/[app]/[streamId].webrtc?token=[token(opt)]&subscriberId=[subscriberId(opt)]&subscriberCode=[TOTP-code(opt)]
Here also target parameter is missing.
Query :
1. If i upgrade to the latest videojs player, Would the problem would be auto fixed or we have to customize target params in the videojs-antmedia-webrtc.js. (Upgrading to the latest version would be painful, bcz a lot of testing would required in staging and production environment).
2. Can we customize the target params in the first version of videojs player, will it work ?
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Jan 23
1
Jan 25
1
Top Posters For This Question
rahul7827 1 post
mustafaboleken 1 post
Popular Days
Jan 23 2023
1 post
Jan 25 2023
1 post
1 answer to this question
Recommended Posts