coldfire18 / android-youtube-player

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

Error playing the youtube video #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Intent lVideoIntent = new Intent(null, Uri.parse("ytv://"+"U0GP5gEyR5c"), this, 
OpenYouTubePlayerActivity.class);
        startActivity(lVideoIntent); 

What is the expected output? What do you see instead?

Communication Error while playing the video

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

2.3.3

Please provide any additional information below.

The issue is not fixed, I am still getting the error with new jar, also i made 
code changes to use ytv

11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812): Error playing video!
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812): java.lang.RuntimeException: 
Invalid NULL Url.
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenY
ouTubePlayerActivity.java:418)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenY
ouTubePlayerActivity.java:1)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.os.AsyncTask.finish(AsyncTask.java:417)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.os.AsyncTask.access$300(AsyncTask.java:127)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.os.Looper.loop(Looper.java:130)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
android.app.ActivityThread.main(ActivityThread.java:3859)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
java.lang.reflect.Method.invokeNative(Native Method)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
java.lang.reflect.Method.invoke(Method.java:507)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:840)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:598)
11-10 11:40:43.354: ERROR/QueryYouTubeTask(15812):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by prasad.d...@gmail.com on 10 Nov 2011 at 4:45

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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