简体   繁体   English

Silverlight,在Silverlight Media Element中播放来自IP摄像机的视频流

[英]Silverlight, Play Video stream from IP camera in Silverlight Media Element

I am trying to integrate the axis camera with my Silverlight application. 我正在尝试将轴照相机与我的Silverlight应用程序集成。 My AXIS IP camera is sending MJPEG images as a video stream and I want to show video stream in my Silverlight application. 我的AXIS IP摄像机正在将MJPEG图像作为视频流发送,我想在Silverlight应用程序中显示视频流。 How can I achieve that because when I put the media element on the Silverlight page and set the source to that of the address of the AXIS IP camera, the media element displays nothing. 如何实现该目标,因为当我将媒体元素放在Silverlight页面上并将源设置为AXIS IP摄像机的地址来源时,媒体元素什么也不显示。 What should I use to get the video stream from my AXIS camera in my Silverlight page. 在Silverlight页面中,应该使用什么从AXIS摄像机获取视频流。

Thanks Softobiz 谢谢Softobiz

this is what I use, but my stream is video (MPEG), not images. 这是我使用的,但是我的流是视频(MPEG),而不是图像。

 MyPlayer.Playlist.Clear();
 PlaylistItem item = new PlaylistItem();
 item.MediaSource =new Uri("192....");
 item.DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.Streaming;
 MyPlayer.Playlist.Add(item);
 MyPlayer.Playlist[0].MediaSource.ToString();
 MyPlayer.Play();

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

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