[ 첨부파일로 mp4 넣기 ]
페이지 정보
본문
data_2 = ["", "[#mp4#]http://www.mediaplayer.kr/main/data/file/data_guide/988289629_hPw5Oqn2_2a7cd7d7d61a15d877fb199315bdd2372efac961.mp4[#mp4#]"];
댓글목록
비타주리님의 댓글
비타주리 작성일
--------------------
https://sir.kr/g5_tip/16533
--------------------
<?php
if ($view['file'][0]['file']) {
$mp_percent = 100;
$mp34_file = $view['file'][0]['path']."/".$view['file'][0]['file'];
$mp34_type = substr($mp34_file, -1) == 4 ? "video" : "audio";
echo "
<script>
document.write('<div id=mp34Player style=text-align:center></div>');
mp34Player.innerHTML = '<$mp34_type style=width:' + $mp_percent + '%;margin-left:' + (100 - $mp_percent) / 2 + '%;display:block src=$mp34_file controls loop controlsList=nodownload></$mp34_type>';
</script>
";
}
?>