使用silverlight媒体播放器在aspx页面中播放视频 [英] Playing video within aspx page using silverlight media player
问题描述
您好我正在开发一个应用程序,其中成员可以上传视频,并可以在我的应用程序中播放。要播放视频我使用silverlight memdia播放器conrtrol.And我的问题是这个控件我能够只播放.wmv视频文件。但我也需要播放所有其他格式的视频。还有一件事是如何将任何格式的视频转换为.wmv
我的代码是
Hi i am developing one application where members can upload videos and can play them within my application.To play videos i am using silverlight memdia player conrtrol.And my problem is with this control i can able to play only .wmv video files.But i need play all other formats of videos also. And one more thing is how to convert any format of video into .wmv
And my code is
<asp:MediaPlayer ID="MediaPlayer" runat="server" Height="240px" Width="320px" AutoPlay="True" MediaSkinSource="~/skins/Classic.xaml">
</asp:MediaPlayer>
我已经提到了这个:http://www.aspsnippets.com/Articles/Media-Player-Contol-using-Silverlight-and-ASP.Net.aspx
任何人都可以帮助我
And i have referred this:http://www.aspsnippets.com/Articles/Media-Player-Contol-using-Silverlight-and-ASP.Net.aspx
Can any one help me
推荐答案
0)Silverlight高度依赖于平台。我不会考虑使用它。
1)我会向html5视频支持向前迈进一步,后退到Flash。检查这个小小的: http://www.videojs.com/ [ ^ ]
2)例如,您可以使用ffmpeg在服务器端转换视频。使用简单流程启动程序 [http://www.ffmpeg-csharp.com/ [ ^ ]。有关使用ffmpeg进行视频转换的更多详细信息,请参阅其文档以及网络上的大量社区添加内容。
0) Silverlight is highly platform dependent. I would not consider using it.
1) I would take a step forward to html5 video support, with fallback to Flash. Check this little one: http://www.videojs.com/[^]
2) You can convert video on server side with ffmpeg for example. Use a simple process starter[^] or this wrapper for example: http://www.ffmpeg-csharp.com/[^]. For more details about video conversion with ffmpeg, consult it's documentation and the plenty of community additions on the web.
这篇关于使用silverlight媒体播放器在aspx页面中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!