Win Azure: Flash Player playing Video hosted in BLOB storage

有些话、适合烂在心里 提交于 2019-12-11 18:47:00

问题


I'm pretty unfamiliar with video streaming. Does anyone know of a page that gives an example of all the steps involved in setting up a web page to stream a video from blob storage? Ideally using FLASH player, not silverlight.

I have a website in Azure that has a page with flash player. It works just fine if I include the MP4 video file in the VS project folder, but if I change the file name to the URL of the same video file in BLOB storage, I get a blank display. Videos are made and provided by my client, so I don't control formats, etc.

In my web page I have the following object tag:

    <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&amp;showsearch=true&amp;autostart=false&amp;autohide=true&amp;xmp=VideoFileName_config.xml&amp;content=https://BLAHBLAHBLAH.blob.core.windows.net/media/VideoFileName.mp4&amp;thumb=FirstFrame.png&amp;containerwidth=800&amp;containerheight=704&amp;smoothing=true&amp;enablejsapi=true&amp;fullscreen=true&amp;windowbox=false&amp;showbranding=false&amp;showstartscreen=true&amp;showendscreen=true&amp;basecolor=272727&amp;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&amp;showsearch=true&amp;autostart=false&amp;autohide=true&amp;xmp=VideoFileName_config.xml&amp;content=https://BLAHBLAHBLAH.blob.core.windows.net/media/VideoFileName.mp4&amp;thumb=FirstFrame.png&amp;containerwidth=800&amp;containerheight=704&amp;smoothing=true&amp;enablejsapi=true&amp;fullscreen=true&amp;windowbox=false&amp;showbranding=false&amp;showstartscreen=true&amp;showendscreen=true&amp;basecolor=272727&amp;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>                        

回答1:


This is probably caused by a wrong content type. You should try changing the content type of your MP4 file to video/mp4.

See the following blog post for more information: Why it is important to set proper content-type HTTP header for blobs in Azure Storage




回答2:


Flash does not support downloading data from non-http urls.

https://code.google.com/p/chromium/issues/detail?id=60132



来源:https://stackoverflow.com/questions/11742935/win-azure-flash-player-playing-video-hosted-in-blob-storage

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