사용자가 지금 비디오를 공개하기 전에 내 비디오의 미리보기 시스템을 얻으려고합니다. 데이터베이스에서 여러 파일을 검색하고 그에 따라 비디오를 생성 할 수 있어야합니다. 나는 버튼 다음과 같은 기능 이제변수 전달 JS의 문제, 비디오의 슬라이드 쇼
function startVideo(id,link) {
$("#"+id).fadeIn("slow", function() {
$f("player", {src: "players/nobranding.swf", wmode: 'opaque'},
{
clip: { autoPlay: true },
playlist: ['videos/IMPORTS/'+link,],
plugins: { controls: { playlist: true }}
}
).ipad();
});
}
에
<a class="btnGray clickable floatRight" style="position:relative;" onclick="startVideo('<?=$content[ReleaseSystem::contentID]?>','<?=$video['filename']?>');"><?=$lang[109]?></a>
이 버튼은 링크가 이상한 것입니다 비디오 플레이어로드 내가하려고 할 때 난 내 버튼의 링크를 통과 DONT하지만 때 그것에게 전체 기능 고장을 연결을 보내십시오. 그게 왜 일어날 지 모르겠다.
도 여기에 플레이어 여기
<div id="videoFlyout<?=$content[ReleaseSystem::contentID]?>" class="popUpWrapper" style="display:none;position:absolute;top:10px;left:auto;">
<div class="firstPopupDiv" style="left:center;height:425px;width:620px;">
<div class="popupDivInner" style="display:block;" class="hideSteps">
<div id="<?=$content[ReleaseSystem::contentID]?>">
<center><a id="player" style="display:block; height:365px; width:620px;"></a></center>
</div>
<a class="btnRed clickable floatRight" style="position:relative;" onclick="closeVideo(<?=$content[ReleaseSystem::contentID]?>);"><?=$lang[109]?></a>
<a class="btnGray clickable floatRight" style="position:relative;" onclick="startVideo('<?=$content[ReleaseSystem::contentID]?>','<?=$video['filename']?>');"><?=$lang[109]?></a>
</div>
</div>
</div>
내 html 코드 내 렌더링 HTM입니다
<div id="videoFlyout280" class="popUpWrapper" style="position: absolute; top: 10px; left: auto; display: none;">
<div class="firstPopupDiv" style="left:center;height:425px;width:620px;">
<div class="popupDivInner" style="display:block;">
<div id="280" style="">
<center>
<a id="player" style="display:block; height:365px; width:620px;">
<object id="player_api" width="100%" height="100%" type="application/x-shockwave-flash" data="players/nobranding.swf">
<param value="true" name="allowfullscreen">
<param value="always" name="allowscriptaccess">
<param value="high" name="quality">
<param value="false" name="cachebusting">
<param value="#000000" name="bgcolor">
<param value="opaque" name="wmode">
<param value="config={"clip":{"autoPlay":true},"playlist":[{"url":"videos/IMPORTS/video_1011_281_1337198589_VID_20120511_00000.3GP","autoPlay":true}],"plugins":{"controls":{"playlist":true}},"playerId":"player"}" name="flashvars">
</object>
</a>
</center>
</div>
<a class="btnRed clickable floatRight" onclick="closeVideo(280);" style="position:relative;">Cancel</a>
<a class="btnGray clickable floatRight" onclick="startVideo('280','video_1011_280_1337183112_testCat.mp4');" style="position:relative;">Cancel</a>
</div>
</div>
</div>
<div id="videoFlyout281" class="popUpWrapper" style="position: absolute; top: 10px; left: auto;">
<div class="firstPopupDiv" style="left:center;height:425px;width:620px;">
<div class="popupDivInner" style="display:block;">
<div id="281" style="">
<center>
<a id="player" style="display:block; height:365px; width:620px;"> </a>
</center>
</div>
<a class="btnRed clickable floatRight" onclick="closeVideo(281);" style="position:relative;">Cancel</a>
<a class="btnGray clickable floatRight" onclick="startVideo('281','video_1011_281_1337198589_VID_20120511_00000.3GP');" style="position:relative;">Cancel</a>
</div>
</div>
</div>
사이드 노트 : 아마도 [PHP short tags] (http://stackoverflow.com/a/200666/633656)를 사용하여 다시 생각해보십시오. 모든 의견도 읽으십시오. ". 더 많은 "해제하면 ..." – Recognizer