开发者

Stream flv in android

Hey all, I'm trying to create an app for android that can stream flv files from the web. The VideoView does not support this. Other players like RockPlayerLite do support flv and play the file fine if it is placed on the sdcard, but i can't find a api on hw to call this as a new intent.

Does anyone know of a flv player that has an API so i can call it from my app with an url that it sh开发者_开发技巧ould load?


It was actually very easy:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(PATH_TO_FILE), "video/flv");
startActivity(intent);   
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜