I want to know a way to fetch flv links and play it using vitamio library. So far i can play embedded youtube videos by fetching youtube links.
Sample code on fetching youtube videos
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);
}
}
}
});