How to play videos using Smooth Streaming media element

a 夏天 提交于 2019-12-08 04:13:30

问题


I want to stream a video file in my windows phone application.. After i have researched, the smooth streaming media element would do this, I believe. but when im assigning the SmoothStreamingSource to "http://www.streaming/video.mp4" the player does not show any video. But when i change the source to an .ism file it buffered and the video was playing. but I will only the video UTL from my web service. Pls help me in how to do this im WP apps.

Here is my code:

Using .ism file which works good:

SSME:SmoothStreamingMediaElement AutoPlay="True" x:Name="SmoothPlayer"

SmoothStreamingSource="http://iismp-demo/adaptive/big_buck_bunny/Big%20Buck%20Bunny%20Adaptive.ism/Manifest" />

but when i change the stream source to a above mentioned mp4 file. the video is not playing. thanks in adavance.


回答1:


Use the following code:

   <SSME:SmoothStreamingMediaElement 
         AutoPlay="True"
         x:Name="SmoothPlayer" 
         Source="<your URL>" 
   />

Use the Source instead of the SmoothStreamingSource. The Source attribute gets or sets a media stream source that is not a Smooth Streaming source.



来源:https://stackoverflow.com/questions/16689005/how-to-play-videos-using-smooth-streaming-media-element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!