简体   繁体   English

通用Windows c#:Media Capture网络摄像头直播

[英]Universal Windows c#: Media Capture Webcam Live Stream

i try to livestream the webcam over network (UWP, c#) 我尝试通过网络直播网络摄像头(UWP,c#)

I tried yet: Recording a 2 second Video using MediaCapture.StartRecordToStreamAsync (send the stream over network) and repeat this. 我还试过:使用MediaCapture.StartRecordToStreamAsync(通过网络发送流)录制2秒视频并重复此操作。 Ofcourse this is a bad solution, as everytime i use StopRecordAsync, i loose like half a second, and on the other side it looks like a huge lagg. 当然这是一个糟糕的解决方案,因为每次我使用StopRecordAsync,我都会松散半秒钟,另一方面它看起来像一个巨大的lagg。

There must be a solution without calling StopRecordAsync every 2 seconds. 必须有一个解决方案,而不是每2秒调用一次StopRecordAsync。 How can i send the video data over the network while still recording? 如何在录制时通过网络发送视频数据?

According to your description, I think the Real-time communication sample might be what you want. 根据您的描述,我认为实时通信示例可能是您想要的。 This sample shows how to use the low latency feature to enable real-time communication applications. 此示例显示如何使用低延迟功能来启用实时通信应用程序。

This sample uses the Media Extension feature to add functionality to the Microsoft Media Foundation pipeline. 此示例使用“媒体扩展”功能向Microsoft Media Foundation管道添加功能。 For more info on creating a Media Foundation media extension in Windows Store app, see Walkthrough: Creating a Windows Store app using WRL and Media Foundation and the Media extension sample . 有关在Windows应用商店应用中创建Media Foundation媒体扩展的详细信息,请参阅演练: 使用WRL和Media Foundation创建Windows应用商店应用以及媒体扩展示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM