Git Product home page Git Product logo

Comments (38)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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:

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
what's the valid url really???

Original comment by [email protected] on 7 Mar 2012 at 10:53

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Can you help me?

Original comment by [email protected] on 24 Apr 2012 at 2:51

Attachments:

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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:

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Post your code here

Original comment by [email protected] on 23 Aug 2012 at 1:52

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
This also not working :(
Is this working?

Original comment by [email protected] on 12 Oct 2012 at 6:13

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
It says "Sorry, this video cannot be played"

Original comment by [email protected] on 12 Oct 2012 at 6:26

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
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
#25 - thank you srikanth! that did the trick!

Original comment by [email protected] on 26 Mar 2013 at 11:20

from android-youtube-player.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
#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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
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)

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.