Skip to content

Screenshare Streams

jo-code edited this page Dec 22, 2020 · 11 revisions

Incoming Screenshare Streams

Overview

Messages

screenshare added

a["{
  \"msg\":\"added\",
  \"collection\":\"screenshare\",
  \"id\":\"<ID>\",
  \"fields\":{
    \"meetingId\":\"<MEETING_ID>\",
    \"screenshare\":{
      \"voiceConf\":\"<VOICE_CONF>\",
      \"screenshareConf\":\"<SCREENSHARE_CONF>\",
      \"stream\":\"<STREAM>\",
      \"vidWidth\":<WIDTH>,
      \"vidHeight\":<HEIGHT>,
      \"timestamp\":\"<TIMESTAMP>\"
    }
  }
}"]

start

{
  "id":"start",
  "type":"screenshare",
  "role":"recv",
  "internalMeetingId":"<MEETING_ID>",
  "voiceBridge":"<VOICE_BRIDGE>",
  "callerName":"<INTERNAL_USER_ID>",
  "sdpOffer":"<SDP_OFFER>",
  "userName":"<USERNAME>"
}

startResponse

{
  "connectionId":<CONNECTION_ID>,
  "type":"screenshare",
  "role":"recv",
  "id":"startResponse",
  "response":"accepted",
  "sdpAnswer":"<SDP_ANSWER>"
}

Outgoing Screenshare Streams

Overview

Messages

start

{
  "id":"start",
  "type":"screenshare",
  "role":"send",
  "internalMeetingId":"<MEETING_ID>",
  "voiceBridge":"<VOICE_BRIDGE>",
  "callerName":"<INTERNAL_USER_ID>",
  "sdpOffer":"<SDP_OFFER>",
  "vh":<HEIGHT>,
  "vw":<WIDTH>,
  "userName":"<USERNAME>"
}

startResponse

{
  "connectionId":<CONNECTION_ID>,
  "type":"screenshare",
  "role":"send",
  "id":"startResponse",
  "response":"accepted",
  "sdpAnswer":"<SDP_ANSWER>"
}