2011-08-03 25 views
18

Uygulamada çalıştırdığımda html5 video kontrollerini kullandığım için bir MVC3 Uygulaması geliştirdim, ancak Chrome'da oynuyor ancak IE8 Browser'da çalmaya çalıştığımda Video sadece sadece ... tüm tarayıcılar videoyu nasıl oynanır bana yardım edin beyaz sayfayı gösterir .. İşte IE8 tarayıcılarda html5 video nasıl oynatılır

i güzel standart yolu var

<video controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" 
    width="640" height="360"> 
    <source src="../../Videos/Nenu Nuvvuantu - Orange - MyInfoland.mp4" type="video/mp4" /> 
    <%-- <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />--%> 
    <source src="../../Videos/Nenu Nuvvuantu - Orange - MyInfoland.ogv" type="video/ogv" /> 
    <object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" 
     width="640" height="360"> 
     <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /> 
     <param name="allowFullScreen" value="true" /> 
     <param name="wmode" value="transparent" /> 
     <param name="flashVars" value="config={'playlist':['http%3A%2F%2Fsandbox.thewikies.com%2Fvfe-generator%2Fimages%2Fbig-buck-bunny_poster.jpg',{'url':'../../Videos/Nenu Nuvvuantu - Orange - MyInfoland.mp4','autoPlay':false}]}" /> 
     <img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" 
      width="640" height="360" title="No video playback capabilities, please download the video below" /> 
    </object> 
</video> 
+0

Başlığınız html5 videosuna işaret ediyor ancak sorunuz Flash videoyla ilgili değil, değil mi? – greg

cevap

40

sayfamın yaptıklarını benim kodudur Flash ve diğer yedeklerle HTML5 videosunun ayarlanması.

Geri dönüş seçeneklerine sahip güzel bir HTML5 etiketleri üreticisi için lütfen Video for Everybody'a bakın.

Alternatif olarak, burada another great library, with JS/CSS code to make it work consistently.

+0

Hi..thank youuu somuch çalışıyor ... aslında bu videoyu yerel sistemimde test ettim, çünkü src = "sunucu yolumdan" bu şekilde nasıl oynayabilirim. Bu bağlantıda olduğu gibi http: // url ... src yolunu verdiğim şeyden bahsettim .. lütfen – jesse

+0

Cevap vermek istiyorum, ama ne soruyorsun diye kafam karıştı. Her iki sürümde, sadece dosyanın mutlak bir yoluna ihtiyacınız var. Yerel bir sürümü test ediyorsanız, 'file: // << path_to_file >>' işlevini kullanın; burada 'path_to_file>' ifadesi tam yol olmalıdır. – OverZealous

+0

Tamam, değiştirilmiş kodumu Sorularıma bir kez gönderin. Bu URL'de değişiklik istiyorum " jesse

0

IE için oynatma sorunlarını gidermek için aşağıdaki yolu kullandım ve bu benim için çalıştı.

<video id=0 controls width="640" height="360"> 
<source src="new/db.ogv" type='video/ogg; codecs="theora, vorbis"'/> 
<source src="new/db.webm" type='video/webm' > 
<source src="new/db.mp4" type='video/mp4'> 
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="500"> 
    <param name="movie" value="db.swf"> 
    <param name="quality" value="high"> 
    <param name="wmode" value="opaque"> 
    <param name="swfversion" value="11.0.0.0"> 
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> 
    <param name="expressinstall" value="../../Scripts/expressInstall.swf"> 
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> 
    <!--[if !IE]>--> 
    <object type="application/x-shockwave-flash" data="db.swf" width="500" height="500"> 
    <!--<![endif]--> 
    <param name="quality" value="high"> 
    <param name="wmode" value="opaque"> 
    <param name="swfversion" value="11.0.0.0"> 
    <param name="expressinstall" value="../../Scripts/expressInstall.swf"> 
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> 
    <div> 
     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> 
     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> 
    </div> 
    <!--[if !IE]>--> 
    </object> 
    <!--<![endif]--> 
</object> 

</video> 

<script type="text/javascript">swfobject.registerObject("FlashID");</script> 
<script src="../../Scripts/swfobject_modified.js" type="text/javascript"></script> 

// burada

http://code.google.com/p/fanarshavin/downloads/detail?name=swfobject_modified.js&can=2&q=

-1

swfobject_modified indir I IE8'de JWPlayer Sayfadaki videolar arasında geçiş yapmak için başarısız ediyorum. Üstelik, JS API'si sadece IE8'de çalışmıyor. Ayrıca en iyi oyuncular vardır: medialement, VideoJS, SublimeVideo. Yani, şimdi medyayı deniyorum.

İlgili konular