-4
在我的測試中,一些視頻php腳本我得到了一個錯誤,在那裏移動版本 當我搜索文件,我知道需要編輯的文件 錯誤是任何上傳的flv視頻將在手機無法正常工作,它會顯示一個錯誤信息,所以我有加(FLV)旁邊其他格式現在將顯示加載但視頻不會在這裏工作 是代碼flv視頻不添加到移動
$ext = strtolower(array_pop(explode('.', $video['url_flv'])));
if($ext == 'mov' || $ext == 'm4a'|| $ext == 'm4v' || $ext == 'mp4' || $ext == 'm2a' || $ext == 'm2v' || $ext == '3g2' || $ext == '3gp' || $ext == 'mp3') {
if($ext == 'mp3' || $ext == 'm4a')
$type = 'audio';
else
$type = 'video';
$embed_code = 'Loading...</div>'; //Close this div as we will insert the player with javascript
$embed_code.= '<div><script language="javascript">
$(function(){
var screenw = window.outerWidth;
var screenh = screenw/16*9; //Common video format + 20px for controls
tag = \'<'.$type.' id="playingvid" style="width:\' + screenw + \'px;'.(($type=='video')?'height:\' + screenh + \'px;':'').'" controls allowfullscreen>\'+
\' <source src="';
if($video['source_id']==1 && substr($video['url_flv'],0,7) != 'http://'){
$embed_code.=_URL.'/uploads/videos/'.$video['url_flv'];
}else{
$embed_code.=$video['url_flv'];
}
$embed_code.= '"></video>\';
$("#video_player .videoWrapper").html(tag);
$(window).resize(function() {
var screenw = document.body.clientWidth;
var screenh = screenw/16*9; //Common video format + 20px for controls
$("#playingvid").width(screenw).height(screenh);
});
});
</script>
';
} else {
$embed_code = $lang['suggest_msg5'];
沒有它在Android +桌面版運行良好 – ahmedalimody
iOS從不支持Flash,只有一些較舊的Android手機。支持Flash的Android手機可能播放FLV視頻,但新手不太可能。 – ceejayoz
感謝您的迴應,無論youtube如何在symbian手機中工作 – ahmedalimody