2012-06-19 4 views
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled Document</title> 
<style type="text/css"> 
<!-- 
.tb_bg { 
background-image: url(../images/audi/audi_land.jpg); 
background-repeat: no-repeat; 
background-position: center center; 
    } 
    .vid_pos{ 
position:static; 
    } 
    #apDiv1 { 
position:absolute; 
width:255px; 
height:163px; 
z-index:1; 
left: 69px; 
top: 478px; 
    } 
--> 
</style> 
</head> 

    <body> 
<div id="apDiv1" class="vid_pos"> 
<video width="350" height="220" preload="meta" controls="controls"  poster="../images/audi/audi_poster.png"> 

<source src="../videos/audi/audi.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> 

<source src="../videos/audi/audi.webm" type='video/webm; codecs="vp8, vorbis"' /> 

<source src="../videos/audi/audi.ogg" type='video/ogg; codecs="theora, vorbis"' /> 

    <object type="application/x-shockwave-flash" style="width: 300px; height: 170px;" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf?flv=/videos/audi/dell_audi.mp4&amp;amp;autoplay=false"> 

<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /> 

    <param name="wmode" value="transparent" /> 

    </object> 
    </video> 

    </div> 
    <table width="800" height="1005" border="0" cellpadding="1" cellspacing="1"    class="tb_bg"> 
    <tr> 
     <td height="1003">&nbsp;</td> 
     </tr> 
     </table> 

     </body> 
     </html> 

코딩에 오류가 없습니다. Chrome, IE & Firefox에서 3 개의 브라우저에서 파일을 열면 동영상이 재생됩니다. 그러나 비디오 파일과 html 파일을 서버에 업로드하고 페이지를 호출 한 후에는 비디오가 Firefox와 IE에서 재생되지 않습니다. 그것은 .. 구글 크롬에서 작동웹 서버에서 호출 할 때 mp4, webm, ogg 비디오 파일이 재생되지 않음

있습니다

이에 관련된 어떤 PHP하거나 아파치 ...

서버 공간 www.godaddy.com에서입니다 ..

나는 파이어 폭스에서 파일을 엽니 다 : 나는 비디오 파일을 배치 한 다음과 같은 메시지가 :

와 IE 에 난 단지 참조 "를 발견 지원되는 형식 및 MIME 타입과 동영상이 없습니다"이미지 -audi_poster.png

지금 어떻게해야합니까? 비디오는 3 대의 브라우저 모두에서 로컬 드라이브에서 열 때 재생됩니다. 서버에 업로드하여 전화를 걸면 왜 작동하지 않는지 알 수 있습니다. 추가 물건이 필요합니까 ?? Pls help ..

답변

4

웹 서버가 올바른 Content-Type 헤더로 응답해야합니다. WebM의 경우 'video/webm'입니다. More here.

관련 문제