Share via

UWP apps - Data streaming

Madhu 96 Reputation points
2020-10-07T17:23:36.15+00:00

Hi,

We have two UWP apps. We have a requirement that we need to broadcast one UWP app screen recording to the other UWP app. (One app is for the Teacher and the other app is for the Student. We need to share the Teacher's UWP app screen inside the Student's UWP app).
We can capture the screen using Windows.Graphics.Capture or Windows.Media.AppRecording. And we can play the video stream in the Student app using MediaPlayerElement. We are trying to figure out the best way to stream this recording between the apps. It'll be very helpful if you can share what are the options we have to stream that video capture to the other UWP app.

Thanks
Madhu

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

Answer accepted by question author

Anonymous
2020-10-08T03:49:52.207+00:00

Hello,

Welcome to Microsoft Q&A!

You could try to use StreamSocket to share the data between two apps. Using a StreamSocket and a StreamSocketListener sending and receiving data over TCP to form a client and server. You'll need to declare an app capability- privateNetworkClientServer in your project.

You could get more detailed information about how to use StreamSocket here: Sockets.

You could also get a sample about SteamSocket here: StreamSocket

Thank you.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. HoneyBee 186 Reputation points
    2021-01-12T09:46:21.827+00:00

    Hello.

    I am in a similar situation with you.

    We need to share the Teacher's UWP app screen inside the student's app(android, web....).

    Could you give me any hints on how you solved this problem?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.