Arunbalaji Rengarajan
Arunbalaji Rengarajan

Reputation: 107

Flv Decoder in J2ME for playing Youtube videos

I am looking for playing flv files using J2ME. Is there any possibility for doing so? Is there any other way to play youtube videos through J2ME?

Upvotes: 1

Views: 629

Answers (1)

Telmo Pimentel Mota
Telmo Pimentel Mota

Reputation: 4043

Extract the v parameter from an youTube url, lets call it VIDEO_ID.

Open http://gdata.youtube.com/feeds/mobile/videos/VIDEO_ID. The content is in xml format.

Parse the xml to find media:content tags.

Open the url attribute of a media:content tag with Manager.createPlayer(url). The protocol is rtsp.

Upvotes: 1

Related Questions