![](/img/trans.png)
[英]How to play the video which is stored in directory cache in Google TV device
[英]How to play swf file on Google TV device?
我已經試過了
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
String pathFlash = getExternalFilesDir(null).getAbsolutePath() + File.separator + "flash/1.swf";
File file = new File(pathFlash);
intent.setDataAndType(Uri.fromFile(file), "flash/*");
startActivity(intent);
但這會導致應用程序崩潰,因為android無法找到播放Flash文件的正確活動。
我還有其他方法可以在Google電視設備上播放Flash文件嗎?
您可以使用Chrome以有限的方式播放Flash視頻(目前支持Flash 10及更低版本)。 嘗試將本地uri傳遞到Flash文件中,然后將其傳遞給Chrome瀏覽器-可能可行-我沒有嘗試過。 您也可以嘗試創建一個將Flash對象嵌入其中的本地html文件,然后在Chrome中加載(在html中引用本地Flash文件-使用意圖傳遞html的uri)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.