0
我想播放存儲在Android設備中使用html5視頻標籤的SD卡中的視頻,在我的android應用的webview中。視頻的路徑存儲在服務器數據庫中,並以「file:///storage/extSdCard/344048250.mp4」的形式傳遞給webview。視頻根本無法加載。我究竟做錯了什麼?當我用本地設備的html頁面進行同樣的操作時,視頻就會播放! 請幫忙! 設備:三星選項卡3(機器人版本4.4.2)SD卡中的視頻不能在android webview中使用html5中的視頻標籤播放
$("img").click(function(){
var tagID = $(this).attr('id');
console.log(local_locations[tagID]);
if(tagID >= 0)
$(this).replaceWith("<video id =\"tagID\" width=\"100%\" controls><source src=\""+local_locations[tagID]+"\" ></video>");
這是我用於加載視頻標籤的代碼。我用視頻標籤替換了一張圖片