2012-07-03 78 views

回答

1

你試過以下嗎? (我目前在電腦沒有僞造)。

forge.file.getLocal('videos/whatever.mpg', function(localFile) { 
forge.media.videoPlay(localFile, function() {}, function(content) {}); 
}, function(content) {}); 
+1

getLocal確實返回前面帶有「file://」的uri。所以我使用getURL來代替它,它正在工作。 var url; forge.tools.getURL(「video/infiniti_olive.mp4」,function(myUrl){ url = myUrl; forge.media.videoPlay(myUrl); }); – user1499633