Question

Can any one How to play youtube videos on j2me java MIDlet? I want to play videos from Rss Feed? My Input URL: http://teluguone.com/tmdb/videos/Chinna-Smokes-Cigarette--Fabulous-Comedy-9533.html

Était-ce utile?

La solution

From the html page source code, search for the iframe tag with src pointing to http://www.youtube.com/embed/. The last part of the src url is the VIDEO_ID. For example, at http://www.youtube.com/embed/zqpAkb5TdXo URL VIDEO_ID is equal to zqpAkb5TdXo.

Open http://gdata.youtube.com/feeds/mobile/videos/VIDEO_ID and search the source code for media:content tags. These tags point to urls with type='video/3gpp' and rtsp protocol and can usually be opened by J2ME apps with Manager.createPlayer(url).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top