opentok / opentok-windows-sdk-samples

Sample applications illustrating best practices using OpenTok Windows SDK
MIT License
9 stars 29 forks source link

the feature that allows to share screen and camera in an WPF App #31

Closed ghost closed 3 years ago

ghost commented 4 years ago

I am trying to implement the feature that allows to share screen and camera in an WPF App. I have researched OpenTok examples and samples and figured they show only one feature per program sample. Question: Should code supply two Publishers (one equipped with Camera and one with Screensharing capturer) and switch them, for example or better stick with single Publisher and flip between the BaseVideoCapturer and ScreensharingCapturer as I need? But I need to implement the screen share as needed during the conference talk.

It would really be thankful if folks provide some sample or document to get the work done.

michaeljolley commented 3 years ago

Hi @DavidSilwal, you would want separate publishers for the speaker and screenshare. Then modify your layout as needed to display the correct stream.