Comments (38)
I got below error when i tried on emulator,I used below source code
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, IntroVideoActivity.class);
startActivity(lVideoIntent);
09-17 22:43:04.529: DEBUG/dalvikvm(340): GC_CONCURRENT freed 100K, 69% free
318K/1024K, external 0K/0K, paused 1ms+1ms
09-17 22:43:04.529: DEBUG/jdwp(340): adbd disconnected
09-17 22:43:04.569: INFO/AndroidRuntime(340): NOTE: attach of thread 'Binder
Thread #3' failed
09-17 22:43:06.039: INFO/ARMAssembler(66): generated
scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at
[0x445ed6f0:0x445ed8a8] in 646678 ns
09-17 22:43:06.259: INFO/ActivityManager(66): Starting: Intent {
dat=ytv://Aqyf2aYR1pQ cmp=com.markana/com.keyes.youtube.IntroVideoActivity }
from pid 348
09-17 22:43:06.880: INFO/ActivityManager(66): Displayed
com.markana/com.keyes.youtube.IntroVideoActivity: +575ms (total +2s393ms)
09-17 22:43:09.169: DEBUG/MediaPlayer(348): Couldn't open file on client side,
trying server side
09-17 22:43:09.179: INFO/StagefrightPlayer(34):
setDataSource('http://www.youtube.com/get_video?video_id=Aqyf2aYR1pQ&t=vjVQa1Ppc
FMvhUQn_YNtbecfsl_w2vtzxxnZR6xCN6M%3D&fmt=18')
09-17 22:43:09.201: INFO/NuHTTPDataSource(34): connect to
www.youtube.com:80/get_video?video_id=Aqyf2aYR1pQ&t=vjVQa1PpcFMvhUQn_YNtbecfsl_w
2vtzxxnZR6xCN6M%3D&fmt=18 @0
09-17 22:43:09.459: INFO/AwesomePlayer(34): mConnectingDataSource->connect()
returned -1004
09-17 22:43:09.459: ERROR/MediaPlayer(348): error (1, -1004)
09-17 22:43:09.539: ERROR/MediaPlayer(348): Error (1,-1004)
09-17 22:43:09.539: DEBUG/VideoView(348): Error: 1,-1004
Can you guys let me know why media player is throwing -1004? so far no luck
playing video with OpenYouTubePlayerActivity
Original comment by [email protected]
on 17 Sep 2011 at 10:46
from android-youtube-player.
the original defect was not formatting the url correctly. the
openyoutubeplayer expects the url to be of the form ytv://<video-id>. also,
there were errors in the player interacting with the youtube apis that should
now be fixed.
Original comment by [email protected]
on 4 Nov 2011 at 1:49
- Changed state: Fixed
- Added labels: Priority-High
- Removed labels: Priority-Medium
from android-youtube-player.
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 comment by [email protected]
on 10 Nov 2011 at 4:41
from android-youtube-player.
I am also getting the same error.
11-15 18:22:41.446: ERROR/QueryYouTubeTask(1088): java.lang.RuntimeException:
Invalid NULL Url. Not sure, how to fix it, I tried various combination but it
fails at the same place saying, "Invalid Url"
Original comment by [email protected]
on 15 Nov 2011 at 12:55
from android-youtube-player.
Same here. The developer says it was fixed on Nov 4, 2011 but no new jar
posted to site. The latest one is from Nov 1, 2011 which is before this bug
was reported. If this issue is fixed, we need the new jar!
Original comment by [email protected]
on 20 Jan 2012 at 2:14
from android-youtube-player.
By the way, it works when on Wifi. I looked at the source and can't figure out
why might be wrong.
Original comment by [email protected]
on 20 Jan 2012 at 2:14
from android-youtube-player.
I patched the source and provided an update that works.
Instructions:
1) Load the jar into your project
2) Add to your manifest file:
<activity
android:name="com.controlledsenility.android.youtube.OpenYouTubePlayerActivity"
android:configChanges="orientation"
/>
3) Call the activity the same way as before:
String url = "http://www.youtube.com/watch?v=yourvideoid";
Uri uri = Uri.parse(url);
String videoId = uri.getQueryParameter("v");
Intent videoIntent = new Intent(null, Uri.parse("ytv://" + videoId),
this,OpenYouTubePlayerActivity.class);
startActivity(videoIntent);
Original comment by [email protected]
on 20 Jan 2012 at 10:12
Attachments:
from android-youtube-player.
You can use the regular source if you dont want to use my jar. Attached is the
activity I edited (source attached). Just drop the java into your project in
place of the original and rebuild.
Original comment by [email protected]
on 25 Jan 2012 at 10:05
Attachments:
from android-youtube-player.
Issue seems to still occur on Android 2.2 and 2.3
Original comment by [email protected]
on 30 Jan 2012 at 4:18
from android-youtube-player.
i tried running the code but i keep getting the below error:
03-05 13:47:05.590: E/QueryYouTubeTask(9413): Error occurred while retrieving
information from YouTube.
Does anyone have a clue about it?
Original comment by [email protected]
on 5 Mar 2012 at 8:24
from android-youtube-player.
My test Video url is http://www.youtube.com/watch?v=v_gQHtXsLtU.
and go down into the stack I found @ queryLatestPlaylistVideo() in
YouTubeUtility.java, line 62 the lResp is a HTTP 404 NOT FOUND. So the real
youtube link must be changed by now.
the url must be change over time. Is there more consitent way of this?
Original comment by [email protected]
on 7 Mar 2012 at 10:48
Attachments:
- [螢幕快照 2012-03-07 下午6.47.05.png](https://storage.googleapis.com/google-code-attachments/android-youtube-player/issue-3/comment-11/螢幕快照 2012-03-07 下午6.47.05.png)
from android-youtube-player.
btw the lGetMethod uri string is:
http://gdata.youtube.com/feeds/api/playlists/v_gQHtXsLtU?v=2&max-results=50&alt=
json
Original comment by [email protected]
on 7 Mar 2012 at 10:50
from android-youtube-player.
what's the valid url really???
Original comment by [email protected]
on 7 Mar 2012 at 10:53
from android-youtube-player.
Have you got a solution for this yet? I am in the same situation
Original comment by [email protected]
on 3 Apr 2012 at 11:28
from android-youtube-player.
Can you help me?
Original comment by [email protected]
on 24 Apr 2012 at 2:51
Attachments:
- [ZTTVKPY4LR%V3Z3]5AWL)7V.jpg](https://storage.googleapis.com/google-code-attachments/android-youtube-player/issue-3/comment-15/ZTTVKPY4LR%V3Z3]5AWL)7V.jpg)
from android-youtube-player.
This is returned by the server,Every time I can not share the video to the
server,I need help.Thank you
Original comment by [email protected]
on 24 Apr 2012 at 2:55
Attachments:
- [L3J4BU{3{(((]YN}V[XUT23.jpg](https://storage.googleapis.com/google-code-attachments/android-youtube-player/issue-3/comment-16/L3J4BU{3{(((]YN}V[XUT23.jpg)
from android-youtube-player.
is it working any way i have tired several times it didnt work
Original comment by [email protected]
on 5 Aug 2012 at 9:01
from android-youtube-player.
OpenYouTubeActivity-1.2.jar work perfects, make sure the URI, "ytv://", not
the "ytpl://"
Original comment by [email protected]
on 12 Aug 2012 at 8:49
from android-youtube-player.
got this error:
"An error occurred during the retrieval of the video. This could be due to network issues or YouTube protocols. Please try again later."
im using the 1.2 jar file.
HELP!!
Original comment by [email protected]
on 22 Aug 2012 at 8:23
from android-youtube-player.
Post your code here
Original comment by [email protected]
on 23 Aug 2012 at 1:52
from android-youtube-player.
thats my code:
String url = "http://www.youtube.com/watch?v=IuEPADM2yBI";
Uri uri = Uri.parse(url);
String id = uri.getQueryParameter("v");
Intent lVideoIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("ytv://" + id), YouTube.this, OpenYouTubePlayerActivity.class);
startActivity(lVideoIntent);
Original comment by [email protected]
on 23 Aug 2012 at 11:56
from android-youtube-player.
This also not working :(
Is this working?
Original comment by [email protected]
on 12 Oct 2012 at 6:13
from android-youtube-player.
It says "Sorry, this video cannot be played"
Original comment by [email protected]
on 12 Oct 2012 at 6:26
from android-youtube-player.
[deleted comment]
from android-youtube-player.
Resolved this issue by adding Signature to the URL
fix:
VideoStream.java (Line: 30)
change: mUrl = lArgMap.get("url");
to: mUrl = lArgMap.get("url") + "&signature=" + lArgMap.get("sig");
Original comment by [email protected]
on 17 Oct 2012 at 9:25
from android-youtube-player.
i did that but i still get the error 1,403, it says i can't play the video
Original comment by [email protected]
on 19 Oct 2012 at 8:29
from android-youtube-player.
HI, i have a all the embed urls of my you tube
http://www.youtube.com/embed/ydk9WBianNw
in my data base how can i play all these videos in my android application using
video view,
thanks in advance
Original comment by [email protected]
on 30 Oct 2012 at 6:16
from android-youtube-player.
that was not fixed, i still have the same issu with some video
Original comment by [email protected]
on 30 Nov 2012 at 11:20
from android-youtube-player.
Thank for Srikanth. This problem is fixed. Thank again
Original comment by [email protected]
on 7 Jan 2013 at 10:16
from android-youtube-player.
#25 - thank you srikanth! that did the trick!
Original comment by [email protected]
on 26 Mar 2013 at 11:20
from android-youtube-player.
Hi,
How can I edit this?
mUrl = lArgMap.get("url") + "&signature=" + lArgMap.get("sig");
when I try to edit it from the eclipse, it can't be edited.
Hope to help me to edit it.
Original comment by [email protected]
on 29 Mar 2013 at 11:38
from android-youtube-player.
How can play the mp4 formate videos.i got an error when i try to load the mp4
formate youtube video.please help he some one...
Original comment by [email protected]
on 12 Jul 2013 at 5:52
from android-youtube-player.
Hi,
I don't get how to change VideoStream.java (Line: 30)?
How i can even acess this file,i got only the jar without the code?
Thanks
Original comment by [email protected]
on 30 Jul 2013 at 8:49
from android-youtube-player.
#25 [email protected]
Resolved this issue by adding Signature to the URL
fix:
VideoStream.java (Line: 30)
change: mUrl = lArgMap.get("url");
to: mUrl = lArgMap.get("url") + "&signature=" + lArgMap.get("sig");
Yes, it work perfectly. Thank bro
Original comment by [email protected]
on 11 Oct 2013 at 8:43
from android-youtube-player.
An error occurred during the retrieval of video. This could be due to network
issues or YouTube protocols. Please try again later.
Original comment by [email protected]
on 23 Dec 2013 at 9:18
from android-youtube-player.
I fixed it using the #25 srikanth…@gmail.com suggestion. I'm attaching a new
JAR.
Original comment by [email protected]
on 27 Jan 2014 at 8:21
Attachments:
from android-youtube-player.
Please do anybody no why the videoview is small. The video aint going full
screen
Original comment by [email protected]
on 18 Feb 2014 at 9:25
Attachments:
from android-youtube-player.
1.3 works, however, it only works with some videos. I've seen elsewhere that
suggested only videos that are explicitly marked as available for mobile will
work with this.
Original comment by [email protected]
on 20 Aug 2014 at 2:12
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.