我想知道一种获取 flv 链接并使用 vitamio 库播放它的方法。到目前为止,我可以通过获取 youtube 链接来播放嵌入的 youtube 视频。
获取 youtube 视频的示例代码
public void onItemClick(AdapterView<?> arg0, View arg1,
int possition, long arg3) {
ProgramEpisode listCatogory = (ProgramEpisode) innerList
.get(possition);
if (listCatogory.getEpisodeVideo().equals("null")) {
Toast.makeText(getApplicationContext(),
"Video is not supported", Toast.LENGTH_SHORT)
.show();
} else {
if (YouTubeApiServiceUtil.isYouTubeApiServiceAvailable(
InnerTeleActivity.this).equals(
YouTubeInitializationResult.SUCCESS)) {
Intent intent = YouTubeStandalonePlayer.createVideoIntent(
InnerTeleActivity.this, API_KEY,
listCatogory.getEpisodeVideo());
startActivity(intent);
} else {
Intent lVideoIntent = new Intent(null, Uri
.parse("ytv://"
+ listCatogory.getEpisodeVideo()),
InnerTeleActivity.this,
OpenYouTubePlayerActivity.class);
startActivity(lVideoIntent);
}
}
}
});