2012-06-21 1 views
1

MVC3 사이트에 일부 HTML5 비디오를 추가하고 있습니다. HTML5는 정상적으로 작동하지만 플래시가 IE에서 응답하지 않는 이유 때문에 이미지가 표시되지 않습니다.mediaelement.js에서 Flash가 작동하지 않습니다. HTML5 비디오 플레이어

<video width="530px" height="445px" id="player1" poster="@Url.Content("~/Content/images/races/circuits/" + Model.Race.shortCode + ".png")" controls="controls" preload="none"> 
<source src="@Url.Content("~/Content/video/races/" + Model.Race.shortCode + ".mp4")" type="video/mp4" /> 
<source src="@Url.Content("~/Content/video/races/" + Model.Race.shortCode + ".webm")" type="video/webm" /> 
<object width="530" height="445" type="application/x-shockwave-flash" data="@Url.Content("~/Content/flash/flashmediaelement.swf")"> 
    <param name="movie" value="@Url.Content("~/Content/flash/flashmediaelement.swf")" /> 
    <param name="flashvars" value="controls=true&[email protected]("~/Content/video/races/" + Model.Race.shortCode + ".mp4")" /> 
    <!-- Image as a last resort --> 
    <img src="@Url.Content("~/Content/images/races/circuits/" + Model.Race.shortCode + ".png")" width="530px" height="445px"/> 
</object> 

<script type="text/javascript"> 
$('audio,video').mediaelementplayer({ 
    success: function (player, node) { 
     $('#' + node.id + '-mode').html('mode: ' + player.pluginType); 
    } 
}); 
</script> 

사람이 문제가 무엇인지 알고 있나요 : 여기

내 코드?

답변

1

data= 필드로 무엇을 하려는지 확실하지 않지만 mediaelement 플레이어가 직접 링크를 선호한다는 것을 알고 있습니다. 내 상대 링크를 시도했을 때 광산이 표시되지 않았습니다. 이것은 모든 사람에게 문제를 일으키지 않는 것처럼 보이지만 갈 가치가 있습니다.