我对视频流非常不熟悉。有没有人知道一个页面,它提供了设置网页以从blob存储流式传输视频所涉及的所有步骤的示例?理想情况下使用FLASH播放器,而不是silverlight。
我在Azure中有一个网站,其中有一个带有Flash播放器的页面。如果我将MP4视频文件包含在VS项目文件夹中,它可以正常工作,但是如果我将文件名更改为BLOB存储中相同视频文件的URL,则会显示空白。视频由我的客户制作和提供,因此我不控制格式等。
在我的网页中,我有以下对象标记:
<object id="csSWF" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="704" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="movie" value="VideoFileName_controller.swf" />
<param name="scale" value="showall" />
<param name="bgcolor" value="#1a1a1a" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="tocdoc=left&showsearch=true&autostart=false&autohide=true&xmp=VideoFileName_config.xml&content=https://BLAHBLAHBLAH.blob.core.windows.net/media/VideoFileName.mp4&thumb=FirstFrame.png&containerwidth=800&containerheight=704&smoothing=true&enablejsapi=true&fullscreen=true&windowbox=false&showbranding=false&showstartscreen=true&showendscreen=true&basecolor=272727&loop=false" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="VideoFileName_controller.swf" width="800" height="704">
<param name="scale" value="showall" />
<param name="bgcolor" value="#1a1a1a" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="tocdoc=left&showsearch=true&autostart=false&autohide=true&xmp=VideoFileName_config.xml&content=https://BLAHBLAHBLAH.blob.core.windows.net/media/VideoFileName.mp4&thumb=FirstFrame.png&containerwidth=800&containerheight=704&smoothing=true&enablejsapi=true&fullscreen=true&windowbox=false&showbranding=false&showstartscreen=true&showendscreen=true&basecolor=272727&loop=false" />
<!--<![endif]-->
<div id="noUpdate">
<p>The video content presented here requires JavaScript to be enabled in your browser and the latest version of the Adobe Flash Player installed. If you are using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Adobe Flash Player by <a href="http://www.adobe.com/go/getflashplayer">downloading here</a>. </p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
答案 0 :(得分:1)
这可能是由错误的内容类型引起的。您应该尝试将MP4文件的内容类型更改为 video / mp4 。
有关详细信息,请参阅以下博文:Why it is important to set proper content-type HTTP header for blobs in Azure Storage
答案 1 :(得分:0)
Flash不支持从非http网址下载数据。