2012-07-03 79 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