Video View not playing youtube video?

While not an explicit answer I believe you need to launch an intent with a YouTube URL and let the OS handle it. That is, I don't think you can embed YouTube videos directly into your activities though I would love to be proven wrong.

While there is no public api to invoke the youTube app, you can do so. You should be aware that doing so is potentially fragile, but very likely the only way you can play youtube videos on an android device. – Nick Campion Mar 2 at 4:48 I wouldn't say fragile.

You can code to support it or not but this is what intents were meant to solve. Launch the intent and catch any failed-to-handle exceptions and give a sorry-you-phone-does-not-play-youtube-videos message. In my experience, nearly all commercial phones have YouTube players.

– Andrew White Mar 2 at 18:36.

You specified wrong URI for the video. youtube.com/watch?v=XS998HaGk9M is a web page, but not directly a video stream Here is correct URI example: tsp://v6. Cache4.c.youtube.Com/CigLENy73wIaHwmh5W2TKCuN2RMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp Also, this address can be obtained from YouTube API.

For example, from here: gdata.youtube.com/feeds/api/users/phoned....

Android webview and videoviews do not support play back of youtube videos in my experience.

Doing Youtube is kind of tricky. First you will need try to access the mobile site. Second you need to play it in a popup window.

The playback needs to be done in the WebChromClient#onShowCustomView method. I kind of forgot the details but that is the general idea. The "view" parameter of the onShowCustomView method, if I remember correctly is a layout with a video view in it, you can start it to play.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions