Open GoogleCodeExporter opened 9 years ago
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);
I am also getting Null pointer exception. is any one is looking into this, I am
desperate to solve this issue.
Please help me in solving it.
Regards,
Mukesh
Original comment by mukicha...@gmail.com
on 15 Nov 2011 at 1:00
[deleted comment]
It works, but on some videos the same error:
11-18 14:52:49.431: E/QueryYouTubeTask(15032): Error playing video!
11-18 14:52:49.431: E/QueryYouTubeTask(15032): java.lang.RuntimeException:
Invalid NULL Url.
Example: "ytv://oQguDN-cWHM".
This happens if the video has been removed by the user from YouTube channel.
Original comment by che.ale...@gmail.com
on 18 Nov 2011 at 1:01
can you send me the video id that u can play successfully. I never had success
so far.
Original comment by prasad.d...@gmail.com
on 18 Nov 2011 at 1:11
These id's working properly:
M2IpET_ydUg
k_ggu8s-2NM
CdD8s0jFJYo
...
(I'm using Samsung Galaxy S i9000 with Android 2.3.4 for testing: in
Emulator(Android 2.2) I also have no errors, but it does not display the video
stream)
P.S.: do not forget to register OpenYouTubePlayerActivity in the
AndroidManifest.xml:
<activity android:name="com.keyes.youtube.OpenYouTubePlayerActivity"></activity>
Original comment by che.ale...@gmail.com
on 18 Nov 2011 at 3:15
I also have this problem. The video plays fine through a browser, just not with
this.
Happens quite alot
http://www.youtube.com/watch?v=wDerjwjK2fM
http://www.youtube.com/watch?v=S4GAkdjid0c
Those don't work, while other videos, passed exactly the same way, do.
Original comment by brainste...@gmail.com
on 23 Mar 2012 at 8:03
I have done everything as has been described but I am also getting the Invalid
NULL Url error, regardless of what VID I use (and really... why would it matter
what the VID is? If there's a problem with the encoding or what not, it still
shouldn't be a null pointer!
Original comment by ysim...@gmail.com
on 11 Apr 2012 at 9:02
suddenly this project stopped working, it is play some videos but most of them
not, any solution ?
note that it was working before one or two days
Original comment by barqawi...@gmail.com
on 19 Dec 2013 at 10:35
Original issue reported on code.google.com by
prasad.d...@gmail.com
on 10 Nov 2011 at 4:45