GithubHelp home page GithubHelp logo

sdp-simulcast's Introduction

This is an npm module to take advantage of the native simulcast capabilities in Chrome. It can handle both sending and reception. It has two reception modes

  • simulcast layers imploding
  • simulcast layers exploding

sdp-simulcast's People

Contributors

bbaldino avatar bgrozev avatar brianh5 avatar emcho avatar gpolitis avatar hristoterezov avatar jallamsetty1 avatar paweldomas avatar saghul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdp-simulcast's Issues

0.1.10 Broke Something

Error message:

Uncaught TypeError: Cannot read property 'ssrcs' of undefined
    at o._restoreSimulcast (https://[...]:10:27147)
    at https://[...]:10:27868
    at https://[...]:10:23587
    at Array.forEach (native)
    at a (https://[...]:10:23549)
    at o.mungeLocalDescription (https://[...]:10:27800)
    at t.S.patchLocalSDP (https://[...]:5:23997)
    at https://[...]:5:24483

Code:

Snippet 1

this.simulcast = new Simulcast({
	"numOfLayers": 2
})

Snippet 2

/**
 * @description patch local SDP
 * @returns {String} patched local description
 */
patchLocalSDP = sdp => {
	this.debug('patchLocalSDP', sdp)

	const simulcastSDP = this.simulcast.mungeLocalDescription({type: 'offer', sdp}).sdp

	return this.patchSDP(simulcastSDP)
}

/**
 * @description patch remote SDP
 * @returns {String} patched remote description
 */
patchRemoteSDP = sdp => {
	this.debug('patchRemoteSDP', sdp)

	const simulcastSDP = this.simulcast.mungeRemoteDescription({type: 'answer', sdp}).sdp

	return this.patchSDP(simulcastSDP)
}

Additional Information

No error is thrown in v0.1.7.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.