tags:

views:

55

answers:

0

I've written a small app to parse some rss feeds from YouTube and launch videos selected by the user. To play the video, I'm using an intent:

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(videoAddress);

in order to call the YouTube app, if installed on the device.

The problem I'm having is that, of the population of videos I am using in my app, about 90% of them display a 'Cannot play video' error message: "Sorry, this video cannot be played.". A few of them work just fine from my app. The videos that do not work will play fine in the YouTube app if searched for and launched entirely from within the YouTube app.

Has anybody seen this behavior, or does anybody have any ideas for things to try? Obviously the YouTube app launches videos in a slightly different way internally than it does from an Intent request, but I haven't a clue how to get to the bottom of it.