Windows Phone 8 C#播放Flash视频

时间:2013-09-30 18:35:28

标签: c# windows-phone-8 flash

我试图播放的视频不支持HTML5,它只支持Flash视频文件(.swf),它不能与WebBrowser控件一起使用 - 除非我遗漏了什么?

那么,是否有任何已开发的代码库允许在Windows Phone 8上播放Flash视频(.swf)?如果没有,你会如何建议将Flash文件(.swf)用于Windows Phone 8?

1 个答案:

答案 0 :(得分:0)

以下是不支持HTML 5时如何进行备用的快速示例:

参考文献:

  • http://www.longtailvideo.com/html5/
  • http://dev.opera.com/articles/view/simple-html5-video-flash-fallback-custom-controls/

            <video width="298" height="163" controls="controls"> 
            <source src="[URL TO MP4 File].mp4" type="video/mp4"></source> 
            <source src="[URL TO webm File FIrefox Support].webm" type="video/webm"></source> 
            <!--Embed Your Flash Object Here--> 
            <object classid="clsid:XXXXXXXXXXXXXXX" width="296" height="163"   align="middle"> 
            <param name="movie" value="[Flash File URL].swf.swf"> 
            <param name="quality" value="high"> 
            <param name="bgcolor" value="#ffffff"> 
            <param name="play" value="true"> 
            <param name="loop" value="true"> 
            <param name="wmode" value="window"> 
            <param name="scale" value="showall"> 
            <param name="menu" value="true"> 
            <param name="devicefont" value="false"> 
            <param name="salign" value=""> 
            <param name="allowScriptAccess" value="sameDomain"> 
            <!--[if !IE]>--> 
            <object type="application/x-shockwave-flash" data="[Flash File URL].swf" width="296" height="163"> 
            <param name="movie" value="[Flash File URL].swf"> 
            <param name="quality" value="high"> <param name="bgcolor" value="#cccccc"> <param name="play" value="true"> 
            <param name="loop" value="true"> <param name="wmode" value="window"> <param name="scale" value="showall"> 
            <param name="menu" value="true"> <param name="devicefont" value="false"> <param name="salign" value=""> 
            <param name="allowScriptAccess" value="sameDomain"> 
            <!--<![endif]--> 
            <a href="http://www.adobe.com/go/getflash"> 
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"> </a> <!--[if !IE]>--> </object> 
            <!--<![endif]--> 
            </object> 
            </video>