Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Can't make it work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - 9 new - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alocaly  
View profile  
 More options Dec 28 2010, 11:21 pm
From: Alocaly <emmanuel.ast...@gmail.com>
Date: Tue, 28 Dec 2010 20:21:04 -0800 (PST)
Local: Tues, Dec 28 2010 11:21 pm
Subject: Can't make it work
Hi,

Do you have a example of a working video ?
It's not working for me.

All the process is ok until I give the URI to the video View.
Then it gives me this error :

12-29 06:13:42.612: ERROR/PlayerDriver(33): Command PLAYER_INIT
completed with an error or info PVMFFailure
12-29 06:13:42.612: ERROR/MediaPlayer(961): error (1, -1)
12-29 06:13:42.652: ERROR/MediaPlayer(961): Error (1,-1)

I checked that the video I wanted to try was ok in the mobile Youtube
( it is the first ad I find in Youtube : http://www.youtube.com/watch?v=owGykVbfgUE
).
I checked also that I could download it on my PC with this soft :
http://www.himili.com/blog/downloads/youtube-video-downloader/, as
this soft is also using the same get_video path.

Any help appreciated,

Emmanuel / Alocaly


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
keyeslabs  
View profile  
 More options Jan 1 2011, 1:03 am
From: keyeslabs <keyes...@gmail.com>
Date: Fri, 31 Dec 2010 22:03:50 -0800 (PST)
Local: Sat, Jan 1 2011 1:03 am
Subject: Re: Can't make it work
There probably is an error in the way that my code is negotiating
tokens with YouTube.  It will take some digging.  If you are up to it
and figure things out, please let me know so that I can patch the
software.

Dave

On Dec 28 2010, 11:21 pm, Alocaly <emmanuel.ast...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alocaly  
View profile  
 More options Jan 1 2011, 9:21 pm
From: Alocaly <emmanuel.ast...@gmail.com>
Date: Sat, 1 Jan 2011 18:21:20 -0800 (PST)
Local: Sat, Jan 1 2011 9:21 pm
Subject: Re: Can't make it work
A token issue ?
I was rather suspecting a video format issue, but I may be wrong...

Actually, what I wanted to do was to replace the play code by some
simple download code, to check that the get_video returns a correct
video ( and try the file on my computer ).
Then, if the file is ok, try to open the downloaded file in the
videoView ( to check if it can be a streaming issue ).

I'm not sure I will have time for this...
And I'm not sure what to do if I get more info...

Emmanuel / Alocaly
http://androidblogger.blogspot.com
http://www.alocaly.com

On Jan 1, 7:03 am, keyeslabs <keyes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alocaly  
View profile  
 More options Jan 1 2011, 9:38 pm
From: Alocaly <emmanuel.ast...@gmail.com>
Date: Sat, 1 Jan 2011 18:38:01 -0800 (PST)
Local: Sat, Jan 1 2011 9:38 pm
Subject: Re: Can't make it work
So i did it, and replace the video view with some simple download
code, and I have a filenotfound exception.
I tried to remove the urlencode on the token, but it didn't change
anything...

Enough for me for tonigh...

Emmanuel / Alocaly
http://androidblogger.blogspot.com/
http://www.alocaly.com/

On Jan 1, 7:03 am, keyeslabs <keyes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nadewad  
View profile  
 More options Jan 24 2011, 5:25 pm
From: Nadewad <naderja...@gmail.com>
Date: Mon, 24 Jan 2011 14:25:21 -0800 (PST)
Local: Mon, Jan 24 2011 5:25 pm
Subject: Re: Can't make it work
I was testing this out as well and could not get it to work.  It
failed with the same error code mentioned by Alocaly.  Could this have
something to do with the switch of media playback from opencore to
StageFright in Android 2.2?  I also would like to help address this
issue.  I'm not quite sure what the root cause of it is.  Has it been
confirmed to be a youtube token issue?  Thanks again for providing
this source, this will be very helpful in my application.

On Jan 1, 9:38 pm, Alocaly <emmanuel.ast...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
keyeslabs  
View profile  
 More options Jan 27 2011, 10:53 am
From: keyeslabs <keyes...@gmail.com>
Date: Thu, 27 Jan 2011 07:53:09 -0800 (PST)
Local: Thurs, Jan 27 2011 10:53 am
Subject: Re: Can't make it work
I haven't taken the time to look into this at all, so I'm only going
to be guessing here.

I believe that this is a change in the way that YouTube creates and
delivers tokens.  You'll notice that the URLs used for contacting
YouTube and also the code for parsing out the token are all part of
the component.  If I were to debug this, I would step through each of
those processes and see which part is failing.  Likely one of the
calls to YouTube is returning some kind of 4xx or 5xx HTTP error code.

In finding a workaround, I would turn to one of the many PHP, Perl or
other embeddable alternate YouTube players that are available on the
Internet.  This is where I found direction on how to obtain tokens,
construct video format URLs etc.

If you are interested in becoming a contributor on the project, just
let me know so that I can add you and you can start updating code in
the repository.

Dave

On Jan 24, 5:25 pm, Nadewad <naderja...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nadewad  
View profile  
 More options Jan 30 2011, 12:50 am
From: Nadewad <naderja...@gmail.com>
Date: Sat, 29 Jan 2011 21:50:04 -0800 (PST)
Local: Sun, Jan 30 2011 12:50 am
Subject: Re: Can't make it work
So I've been trying to debug this a little bit and here's what I have
come up with so far:

It appears that the url generated and stored in the lUriStr has a
malformed Youtube URL.  I tried copying and pasting this URL into my
browser and it failed to resolve the youtube video.  Instead I
replaced the following line:

                lUriStr = "http://www.youtube.com/get_video?
video_id="+pYouTubeVideoId+"&t="+URLEncoder.encode(lTokenStr)
+"&fmt="+pYouTubeFmtQuality;

with:

                lUriStr = "http://www.youtube.com/watch?v="+pYouTubeVideoId
+"&t="+URLEncoder.encode(lTokenStr)+"&fmt="+pYouTubeFmtQuality;

Notice the difference in the url from "get_video?video_id=" to "watch?
v=".

After making this change I received the following error:

01-30 00:47:02.407: ERROR/PlayerDriver(19701): Command PLAYER_INIT
completed with an error or info PVMFErrCorrupt
01-30 00:47:02.407: ERROR/MediaPlayer(4470): error (1, -10)

This seems to get further in the YouTube streaming process.
Unfortunately I do not know enough about playing streamed media from
an Android device nor the YouTube APIs.  Keyes, I understand that you
are busy but with using this little tidbit help in debugging this
issue?  Thanks again for providing this source.

On Jan 27, 10:53 am, keyeslabs <keyes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nadewad  
View profile  
 More options Feb 2 2011, 10:09 pm
From: Nadewad <naderja...@gmail.com>
Date: Wed, 2 Feb 2011 19:09:37 -0800 (PST)
Local: Wed, Feb 2 2011 10:09 pm
Subject: Re: Can't make it work
Ok so I've been trying my hand at this a bit more and I think the
actual token parsing is correct.  I looked at the get_video info file
and it parses out the token correctly as far as I know.  My question
is that is the token supposed to include an equals sign at the end?
The only thing I noticed was that when I looked at the raw get_video
file, the token had included the equals sign encoded in url encoding.
When the token was parsed out however, it was decoded into the equals
sign.

The only other thing I can think of is that the url, "http://
www.youtube.com/get_video?" is deprecated as far as I know.  I tried
navigating to the url parsed together from the calculateYouTubeURL
funciton in the YouTubeUtility class using a desktop browser and it
doesn't seem to be a valid link.  My guess is that YouTube had changed
the exact url for accessing the streams.

Dave if you could chime in and confirm or debunk any of my claims, I
would greatly appreciate it.

Thanks.

All the best,
Nader

On Jan 30, 12:50 am, Nadewad <naderja...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
benwalker  
View profile  
 More options May 31 2011, 11:43 am
From: benwalker <benwalker1...@googlemail.com>
Date: Tue, 31 May 2011 08:43:10 -0700 (PDT)
Local: Tues, May 31 2011 11:43 am
Subject: Re: Can't make it work

Has anyone made any progress getting this to work?

I've re-parsed the URLs to point at watch?v={videoID} but no joy as yet.
Incidentally, i get two different types of error message depending on
whether I'm running via emulator or hardware.

My HTC (Desire, 2.2) starts out well,

Create new client(52) from pid 9072,
url=http://www.youtube.com/watch?v=SP8E6ouSiC0&t=vjVQa1PpcFMbR4aDz7o4wxxM...,
connId=52
setDataSource(http://www.youtube.com/watch?v=SP8E6ouSiC0&t=vjVQa1PpcFMbR4aDz7o4wxxM...)
create StagefrightPlayer

but then starts throwing up HTTPStream errors:
ERROR/HTTPStream(67): recv failed, errno = 11 (Try again)

followed by
ERROR/HTTPStream(67): recv failed, errno = 9 (Bad file number)

then
VERBOSE/MediaExtractor(67): FAILED to autodetect media content.

and finally bombing out with
ERROR/MediaPlayer(9072): error (1, -2147483648)

The emulator fails almost immediately with:
ERROR/PlayerDriver(31): Command PLAYER_INIT completed with an error or info
PVMFFailure

I'm assuming this is to do with the emulator/proxy problems associated with
playing youtube videos.

Any thoughts though?

Thanks,

Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kio21  
View profile  
 More options Jul 20 2011, 4:44 am
From: kio21 <special...@gmail.com>
Date: Wed, 20 Jul 2011 01:44:06 -0700 (PDT)
Local: Wed, Jul 20 2011 4:44 am
Subject: Re: Can't make it work

On Tuesday, May 31, 2011 11:43:10 AM UTC-4, benwalker wrote:

> Has anyone made any progress getting this to work?

 Have the following error in my logcat output:

VERBOSE/PlayerDriver(95): Completed command PLAYER_SET_DATA_SOURCE
status=PVMFSuccess
VERBOSE/PlayerDriver(95): HandleInformationalEvent:
PVMFInfoErrorHandlingStart
VERBOSE/PlayerDriver(95): HandleInformationalEvent: type=26 UNHANDLED
VERBOSE/PlayerDriver(95): HandleInformationalEvent: type=26 UNHANDLED
WARN/MediaPlayer(15881): info/warning (1, 26)
INFO/MediaPlayer(15881): Info (1,26)
VERBOSE/PlayerDriver(95): CommandCompleted
VERBOSE/PlayerDriver(95): Completed command PLAYER_INIT status=PVMFFailure
ERROR/PlayerDriver(95): Command PLAYER_INIT completed with an error or info
PVMFFailure
ERROR/MediaPlayer(15881): error (1, -1)
ERROR/MediaPlayer(15881): Error (1,-1)
DEBUG/VideoView(15881): Error: 1,-1
VERBOSE/PVPlayer(95): run_set_video_surface s=-2147483648, cancelled=0
VERBOSE/PlayerDriver(95): HandleInformationalEvent:
PVMFInfoErrorHandlingComplete


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic