Skip to content

Start Video constraint after adaptor is initialized #17

@sagark1510

Description

@sagark1510

Hi @TecladistaProd ,

I'm working on conference and I offer user control to start conference with audio only and later they can turn on the video. However if I pass video: false in the mediaconstraint so that user won't get unnecessary prompt for camera permission,
later we don't have any way to add the video stream into existing stream.

i.e.
I start with

 const adaptor = useAntMedia({
    url: webSocketUrl,
    mediaConstraints: {
      video:false,
      audio: true,
    },
    sdp_constraints: {
      offerToReceiveAudio: true,
      offerToReceiveVideo: true,
    },
})

Now, how can I add the video stream to remote peer connections or which antmedia websocket command can help us do that?

Any solution would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions