fangzhzh / android-youtube-player

Automatically exported from code.google.com/p/android-youtube-player
0 stars 0 forks source link

Invalid Url #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
String url = "http://www.youtube.com/watch?v=Aqyf2aYR1pQ&feature=featured";
        Uri uri = Uri.parse(url);
        String vid = uri.getQueryParameter("v"); 
        Intent lVideoIntent = new Intent(null,Uri.parse("ytv://"+vid), this, OpenYouTubePlayerActivity.class);

        startActivity(lVideoIntent); 

What is the expected output? What do you see instead?
I wanted to see the my application plays the youtube video

What version of the product are you using? On what operating system?
Android 2.2

Please provide any additional information below.
Every time it says, Invalid url

11-15 18:22:41.446: ERROR/QueryYouTubeTask(1088): Error playing video!
11-15 18:22:41.446: ERROR/QueryYouTubeTask(1088): java.lang.RuntimeException: 
Invalid NULL Url.

11-15 18:22:41.446: ERROR/QueryYouTubeTask(1088):     at 
com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenY
ouTubePlayerActivity.java:431)
11-15 18:22:41.446: ERROR/QueryYouTubeTask(1088):     at 
com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenY
ouTubePlayerActivity.java:1)

Original issue reported on code.google.com by mukicha...@gmail.com on 15 Nov 2011 at 1:03