Comments (8)
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.
[deleted comment]
from android-youtube-player.
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.
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.
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.
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.
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.
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)
- Cannot play video Sorry, this video cannot be played shown always when streaming video from youtube HOT 3
- Video crashes after 30 min
- Youtube API changed HOT 30
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/VideoStream.java
- Audio is playing in the background but no video
- Hidden constructor called more than once per process!
- Video CannotPlay HOT 1
- Can't play this vide
- progress bar can't moving without touching screen or control
- Error playing youtube video HOT 1
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/VideoStream.java
- OpenYouTubePlayerActivity not found !!
- MP4 video can not play from SD Card on VideoView in Google TV OS
- Android 4.3 UP + Fullscreen Video View HOT 8
- Like and Dislike buttons not appearing on player
- Android TV (ADT-1) YouTubePlayerFragment does not works
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java
- Patch for /trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-youtube-player.