Jump to content
  • 0

getVideoSender(streamId) - adapter not defined


Samuele
 Share

Question

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

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

 Share


×
×
  • Create New...