Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 15 Nov 2011 at 1:00

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
[deleted comment]

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 18 Nov 2011 at 1:01

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
can you send me the video id that u can play successfully. I never had success 
so far. 

Original comment by [email protected] on 18 Nov 2011 at 1:11

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 18 Nov 2011 at 3:15

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 23 Mar 2012 at 8:03

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 11 Apr 2012 at 9:02

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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 [email protected] on 19 Dec 2013 at 10:35

from android-youtube-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.