Samuele Posted February 7 Share Posted February 7 Hi im using the Javascript SDK via npm install (and using it with vue) when i try to change the bandwidth and i call the changeBandwidth the sdk call the getVideoSender getVideoSender(streamId) { var videoSender = null; if (typeof adapter !== "undefined" && adapter !== null && (adapter.browserDetails.browser === 'chrome' || adapter.browserDetails.browser === 'firefox' || adapter.browserDetails.browser === 'safari' && adapter.browserDetails.version >= 64) && 'RTCRtpSender' in window && 'setParameters' in window.RTCRtpSender.prototype) { videoSender = this.getSender(streamId, "video"); } return videoSender; } but adapter isn't globaly defined ( i think it is defined into the adapter-factory ) i need also to include the adapter-latest.js ? Link to comment Share on other sites More sharing options...
0 Burak Posted February 7 Share Posted February 7 Hi @Samuele, Yes you should run changeBandwidth method. This is the usage in Sample WebRTC Publish App: https://github.com/ant-media/StreamApp/blob/710d934356d2b9523ea287ef3c975e13bbaa9b7e/src/main/webapp/samples/publish_webrtc.html#L265 adapter-latest.js is also imported in the sample publish page. Link to comment Share on other sites More sharing options...
Question
Samuele
Hi im using the Javascript SDK via npm install (and using it with vue)
when i try to change the bandwidth and i call the changeBandwidth the sdk call the getVideoSender
getVideoSender(streamId) { var videoSender = null; if (typeof adapter !== "undefined" && adapter !== null && (adapter.browserDetails.browser === 'chrome' || adapter.browserDetails.browser === 'firefox' || adapter.browserDetails.browser === 'safari' && adapter.browserDetails.version >= 64) && 'RTCRtpSender' in window && 'setParameters' in window.RTCRtpSender.prototype) { videoSender = this.getSender(streamId, "video"); } return videoSender; }
but adapter isn't globaly defined ( i think it is defined into the adapter-factory )
i need also to include the adapter-latest.js ?
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Feb 7
2
Top Posters For This Question
Burak 1 post
Samuele 1 post
Popular Days
Feb 7 2023
2 posts
1 answer to this question
Recommended Posts