チェンジセット 118
- コミット日時:
- 2010/09/30 19:57:14 (14 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/mp4player.php
r116 r118 6 6 mp4player.php 7 7 8 ��� 9 HTML5 Video Player��戎�c�MP4����������� 8 目的 9 HTML5 Video Playerを使ってMP4の再生をします 10 10 11 based HTML5 Video Player | VideoJS http://videojs.com/ 11 12 12 綣�� 13 f:�������ゃ��� 13 引数 14 f:再生ファイル名 15 14 16 DCC-JPL Japan/foltia project 15 17 … … 37 39 FROM foltia_subtitle,foltia_program 38 40 WHERE pid = ? AND foltia_subtitle.tid = foltia_program.tid"; 39 $rs = sql_query($con, $query, "DB ������紊掩�������",array($pid));41 $rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); 40 42 $rowdata = $rs->fetch(); 41 43 42 $title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); 44 //$title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); 45 $title = htmlspecialchars($rowdata[0]); 43 46 if ($rowdata[1] == ""){ 44 47 $countno = ""; 45 48 }else{ 46 $countno = " 膃�.htmlspecialchars($rowdata[1])."荅�;49 $countno = "第".htmlspecialchars($rowdata[1])."話"; 47 50 } 48 $subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); 51 //$subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); 52 $subtitle = htmlspecialchars($rowdata[2]); 49 53 $tid = htmlspecialchars($rowdata[3]); 50 54 $filename = htmlspecialchars($rowdata[4]); 51 55 52 }else{//綣���������弱��� 56 }else{//引数なしエラー処理 57 53 58 header("Status: 404 Not Found",TRUE,404); 54 59 print "<!DOCTYPE html> 55 60 <html> 56 61 <head> 57 <meta charset=\" utf-8\" />\n";62 <meta charset=\"EUC-JP\" />\n"; 58 63 print " <title>foltia HTML5 Video Player</title></head><body>No pid.</body></html>"; 59 64 exit ; 60 65 } 61 66 62 if ($filename == "") {//����ゃ�����������弱���header("Status: 404 Not Found",TRUE,404); 67 if ($filename == "") {//ファイルなしなしエラー処理 68 header("Status: 404 Not Found",TRUE,404); 63 69 print "<!DOCTYPE html> 64 70 <html> 65 71 <head> 66 <meta charset=\" utf-8\" />\n";72 <meta charset=\"EUC-JP\" />\n"; 67 73 print " <title>foltia HTML5 Video Player</title></head><body>File not found.</body></html>"; 68 74 exit ; … … 70 76 71 77 72 print "<!DOCTYPE html>\n<html>\n<head><meta charset=\" utf-8\" />\n\n78 print "<!DOCTYPE html>\n<html>\n<head><meta charset=\"EUC-JP\" />\n\n 73 79 <title>foltia HTML5 Video Player / $title $countno $subtitle</title>\n"; 74 80 $mp4videofileurl = "http://". getserverfqdn() ."$httpmediamappath/$tid.localized/mp4/$filename"; … … 78 84 79 85 <!-- Include the VideoJS Library --> 80 <script src="./video-js/video.js" type="text/javascript" charset=" utf-8"></script>86 <script src="./video-js/video.js" type="text/javascript" charset="EUC-JP"></script> 81 87 82 <script type="text/javascript" charset=" utf-8">88 <script type="text/javascript" charset="EUC-JP"> 83 89 // Run the script on page load. 84 90 … … 100 106 </script> 101 107 <!-- Include the VideoJS Stylesheet --> 102 <link rel="stylesheet" href="./video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset=" utf-8">108 <link rel="stylesheet" href="./video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="EUC-JP"> 103 109 </head> 104 110 <body>