Index: trunk/install/php/mp4player.php =================================================================== --- trunk/install/php/mp4player.php (リビジョン 116) +++ trunk/install/php/mp4player.php (リビジョン 118) @@ -6,10 +6,12 @@ mp4player.php -��� -HTML5 Video Player��戎�c�MP4����������� +目的 +HTML5 Video Playerを使ってMP4の再生をします + based HTML5 Video Player | VideoJS http://videojs.com/ -綣�� -f:�������ゃ��� +引数 +f:再生ファイル名 + DCC-JPL Japan/foltia project @@ -37,32 +39,36 @@ FROM foltia_subtitle,foltia_program WHERE pid = ? AND foltia_subtitle.tid = foltia_program.tid"; -$rs = sql_query($con, $query, "DB������紊掩�������",array($pid)); +$rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); $rowdata = $rs->fetch(); -$title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); +//$title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); +$title = htmlspecialchars($rowdata[0]); if ($rowdata[1] == ""){ $countno = ""; }else{ - $countno = "膃�.htmlspecialchars($rowdata[1])."荅�; + $countno = "第".htmlspecialchars($rowdata[1])."話"; } -$subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); +//$subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); +$subtitle = htmlspecialchars($rowdata[2]); $tid = htmlspecialchars($rowdata[3]); $filename = htmlspecialchars($rowdata[4]); -}else{//綣���������弱��� +}else{//引数なしエラー処理 + header("Status: 404 Not Found",TRUE,404); print " - \n"; + \n"; print " foltia HTML5 Video PlayerNo pid."; exit ; } -if ($filename == "") {//����ゃ�����������弱���header("Status: 404 Not Found",TRUE,404); +if ($filename == "") {//ファイルなしなしエラー処理 +header("Status: 404 Not Found",TRUE,404); print " - \n"; + \n"; print " foltia HTML5 Video PlayerFile not found."; exit ; @@ -70,5 +76,5 @@ -print "\n\n\n\n +print "\n\n\n\n foltia HTML5 Video Player / $title $countno $subtitle\n"; $mp4videofileurl = "http://". getserverfqdn() ."$httpmediamappath/$tid.localized/mp4/$filename"; @@ -78,7 +84,7 @@ - + - - +