How to use the semantic-sdp.SDPInfo.process function in semantic-sdp

To help you get started, we’ve selected a few semantic-sdp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webrtc / KITE / KITE-Multi-Simul-cast-Test / server / simulcast / src / server / common / streaming / init.js View on Github external
export const initOffer = (endpoint, offerSdp) => {
  const offer = SDPInfo.process(offerSdp)

  // transport :: Transport
  const transport = endpoint.createTransport({
    dtls: offer.getDTLS(),
    ice: offer.getICE()
  })

  transport.setRemoteProperties({
    audio: offer.getMedia('audio'),
    video: offer.getMedia('video')
  })

  // answer :: SDPInfo
  const answer = new SDPInfo()

  // dtlsInfo :: DTLSInfo