zivGitHub / android-youtube-player

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

Media Player 1004 error #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try streaming youtube id: BUC2oxiKZ54 (in fact most don't work atm)
2. 3G/WiFi both reproduce the problem

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

Expected output = plays youtube video fine. Worked brilliantly last week or 
two, but has been down all day today. Displays error 1004 on media player:

09-27 16:30:53.666: E/MediaPlayer(2641): error (1, -1004)
09-27 16:30:53.666: E/MediaPlayer(2641): Error (1,-1004)
09-27 16:30:53.666: D/VideoView(2641): Error: 1,-1004

Caused by invalid URL:

URL set to Videoview = 

http%3A%2F%2Fo-o---preferred---sn-ntq7enee---v19---lscache7.c.youtube.com%2Fvide
oplayback%3Fupn%3D3OYoh5ze5io%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%2
52Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904822%252C922401%252C92070
4%252C912806%252C913419%252C913546%252C913556%252C919349%252C919351%252C925109%2
52C919003%252C912706%252C900816%26key%3Dyt1%26expire%3D1348740541%26itag%3D18%26
ipbits%3D8%26sver%3D3%26ratebypass%3Dyes%26mt%3D1348716254%26ip%3D58.109.93.136%
26mv%3Dm%26source%3Dyoutube%26ms%3Dau%26cp%3DU0hTTVdPTl9JS0NOM19PSVJGOlpjczRIWVJ
wX0VO%26id%3D0540b6a3188a679e

this is returned from YoutubeUtility.calculateYouTubeUrl

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

Android 2.3.4

Please provide any additional information below.

http://www.youtube.com/get_video_info?&video_id=BUC2oxiKZ54

returns a very long access_token that doesn't look right - would be curious to 
see what the correct output is expected. 

Right now, i catch the error and play a low quality youtube player instead by 
invoking

http://gdata.youtube.com/feeds/mobile/videos/BUC2oxiKZ54

Original issue reported on code.google.com by elie...@gmail.com on 27 Sep 2012 at 6:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just a short heads up that am am also experiencing this problem (android 2.3.3).

Can you please post your work around? I can't find the place where to catch en 
replace with the mobile player.

Thanks!

Original comment by martijn....@gmail.com on 27 Sep 2012 at 7:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same here. Negative comments on my app caught my attention. Does somebody know 
how to fix this (1,-1004) error? Need it ASAP

Original comment by MikeShap...@gmail.com on 27 Sep 2012 at 10:03

GoogleCodeExporter commented 9 years ago
Same problem in my app.

Original comment by huseyin....@gmail.com on 27 Sep 2012 at 11:19

GoogleCodeExporter commented 9 years ago
From what I've found, it's tied to a server response of 403 -- meaning the URL 
returned by the calculatedUrl is dead.

YouTube must be changing things around or dropping api v1 support. Hopefully it 
just means the YouTube Player API is coming out... I hope.

Original comment by xez...@gmail.com on 28 Sep 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Guys, try adding signature parameter to the url.

Original comment by rafatab...@gmail.com on 28 Sep 2012 at 9:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same problem , I wish some one can find the solution for this , My 
app is all about youtube video , and nothing is working now !!!

Original comment by Alaa.Q...@googlemail.com on 28 Sep 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Thanks, Rafael!

It works fine for me with this:

VideoStream.java (Line: 30)
before: mUrl = lArgMap.get("url");
after:  mUrl = lArgMap.get("url") + "&signature=" + lArgMap.get("sig");

Original comment by halifax...@gmail.com on 28 Sep 2012 at 1:51

GoogleCodeExporter commented 9 years ago
Follow comment #10 for the absolute WIN.

Thanks so much. I had completely rebuilt the URL trying to resolve this issue. 
All it needed was the damn signature added? Wow.

Original comment by xez...@gmail.com on 28 Sep 2012 at 2:03

GoogleCodeExporter commented 9 years ago
PERFECT!
Thank you!
Also works for me!

Original comment by netpla...@gmail.com on 28 Sep 2012 at 2:06

GoogleCodeExporter commented 9 years ago
Thanks Rafael and Halifax@gmail.com for updating ,but how you guys came know 
about this paramter....

Anyway thanks gr8 work guys

Original comment by SRIKIRAN...@gmail.com on 28 Sep 2012 at 2:20

GoogleCodeExporter commented 9 years ago
Thank you all. It's working again.
I love you guys.

Original comment by elyess.a...@gmail.com on 28 Sep 2012 at 2:22

GoogleCodeExporter commented 9 years ago
YES!! Number #10 does work!!

Original comment by beren...@gmail.com on 28 Sep 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Yups, like a charm. Happy app users again, case closed. Thanks to all!

Original comment by martijn....@gmail.com on 28 Sep 2012 at 7:05

GoogleCodeExporter commented 9 years ago
what is lArgMap and the signature? Please, explain a bit clearer how to fix 
this:)

Original comment by MikeShap...@gmail.com on 29 Sep 2012 at 6:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you so much  halifax...@gmail.com for giving US solution for the issue.

Original comment by bnage...@surfbi.com on 8 Oct 2012 at 11:12

GoogleCodeExporter commented 9 years ago
Friends,

How to make #10? 

Original comment by murali....@gmail.com on 12 Oct 2012 at 6:53

GoogleCodeExporter commented 9 years ago
thanks halirfax

Original comment by khawarra...@gmail.com on 10 Dec 2012 at 4:00

GoogleCodeExporter commented 9 years ago
Thanks halirfax!

Is this project discontinued? This will be in a 1.2 release, or something!
There is another project that continues this project?

Original comment by BaronSe...@gmail.com on 12 Dec 2012 at 8:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i did this modification in the VedieoStream.java, but i still get the same 
message "Sorry, this video cannot be palyed"

also in the eclipse - LogCat, i had the error (1,-1004).

Any advice?

Original comment by Apps...@gmail.com on 25 Apr 2013 at 3:27