WMV file in an ASP.NET page

百般思念 提交于 2020-01-04 05:43:15

问题


How do I embed a WMV file in an ASP.NET Web page? I want it visible as a player, not just a link. Is there an ASP.NET control for this? I don't see one on the VS 2008 toolbar, and can't find one in the help. And I'm not yet ready to move this site to Silverlight, where media is really easy.


回答1:


Check if your project is targeted for 3.5. If it is, you should be able to see the mediaplayer control in your toolbox.

WMV can be shown in Firefox with this plugin: http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx

WMV can be shown in QuickTime with this plugin: http://www.microsoft.com/downloads/details.aspx?FamilyID=915D874D-D747-4180-A400-5F06B1B5E559&displaylang=en

Anthony :-)




回答2:


WMV is primarily a Microsoft file format. There is no inherent browser support for this format, so you're going to need a browser plugin to play it.

I'm pretty sure you can embed Windows Media Player on a page to play it, but that'll limit you to clients running Windows and who happen to have Media Player installed.

If you need to support a wide audience, I'd seriously consider re-encoding your video to something like FLV and using a Flash based video player. I haven't got statistics to hand that back this up - but Flash Video is the most widely supported video format in the browser.



来源:https://stackoverflow.com/questions/329532/wmv-file-in-an-asp-net-page

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