2013-07-23 34 views
1

我想在所有瀏覽器中播放視頻。這我下面的代碼在chromefirefox工作正常,但不能在IE8或更低版本中工作。JW播放器在Internet Explorer中顯示空白頁面沒有錯誤

空白頁面沒有錯誤。此外,我需要您的建議,以改善此代碼的平板電腦,所有瀏覽器,IPHONE,並在MAC上。

有沒有提高所有IE瀏覽器性能的建議。

<!DOCTYPE html> 
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> 
    <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> 
    <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> 
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> 

    <head> 

     <!-- Basic Page Needs 
     ================================================== --> 
     <meta charset="utf-8"> 
     <title>Demo</title> 
     <meta name="description" content=""> 
     <meta name="author" content=""> 
      <title> 
       Demostration of ektuhi video 
      </title> 
      <script src="http://jwpsrv.com/library/irhCxKvuEeKSqiIACpYGxA.js"></script> 
      <style type="text/css"> 
      html,body { height:100%; width:100%; padding:0; margin:0; } 
      #player { 
      height:100%; 
      width:100%; padding:0; margin:-3px;} 
      </style> 
     </head> 
     <body> 
       <div id='my-video'></div> 
       <script type='text/javascript'> 
        jwplayer('my-video').setup({ 
         flashplayer: 'player.swf', 
         file: 'http://content.bitsontherun.com/videos/bkaovAYt-364766.mp4', 
       image: 'http://www.longtailvideo.com/content/images/phoenix/download_video_preview.png', 
         width: '100%', 
         height: '100%', 
         stretching: 'exactfit' 
        }); 
       </script> 
     </body> 
    </html> 

enter image description here

+0

您是否嘗試在'px'而不是'%'中指定球員身高? – Salman

回答

1

刪除這一行:

flashplayer: 'player.swf', 

不需要JW6。

相關問題