My favorites | Sign in
Google
          
New issue | Search
for
| Advanced search | Search tips
Issue 82: JS API to control the embedded player
99 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2008
Type-Enhancement
Priority-Medium
API-YouTube


Sign in to add a comment
 
Reported by api.stephaniel, Aug 30, 2007
Interact with controls; mute, play/stop/seek
callbacks when users interact with player; pressed play, scrubbed, etc.
retrieve current location of video, setting current location

Comment 1 by vchatalbashev, Sep 13, 2007
Please fix this
Comment 2 by api.stephaniel, Sep 13, 2007
(No comment was entered for this change.)
Status: Prioritized
Comment 3 by hiltowitsch, Oct 06, 2007
would be very usefull, please offer this!
thanks
Comment 4 by gavi.narra, Oct 11, 2007
Please add this feature. This could be very useful.
Comment 5 by alper.cugun, Oct 17, 2007
Yes please.
Comment 8 by g...@mindspring.com, Oct 25, 2007
Please add this feature, as well as the ability to pull elapsed time. 
Comment 9 by jeremiah.wells, Oct 25, 2007
Adding even rudimentary features such as the ability to know when the movie has ended
as well as stop/start and elapsed time would be a great addition. Please help!
Comment 10 by arobros, Oct 25, 2007
Add this please!!
Comment 11 by jo.witte, Oct 26, 2007
This would be a rather helpful feature. Please add!
Comment 12 by anurag.phadke, Oct 27, 2007
please add..
Comment 13 by imbaRoxxor, Nov 01, 2007
please add !!!
Comment 14 by gkresic, Nov 01, 2007
Extremely useful feature. Doesn't have to be implemented all-at-once: even basic
playback controls would be enough for start, then callback and all the other goodies
later.
Comment 15 by mikael.letang, Nov 11, 2007
I d love to have that - any tips on which timeframe it would be released? 
Thanks!
Comment 16 by sdetschew, Nov 14, 2007
please please add!!!
Comment 17 by cobra.inc, Nov 15, 2007
yep, would love this!
Comment 18 by s...@design-monkey.co.uk, Nov 20, 2007
Cant Wait, looking forward to this :)
Comment 19 by harrygate, Nov 29, 2007
I'd like to see a Play List script or features to allow this to be coded easily :->
Comment 20 by Ing.DMena, Dec 02, 2007
control over the netstream will be greate!!
Comment 21 by spacyspacy, Dec 04, 2007
What I would like:
- Callbacks for video start/stop/pause/finish
- Set new video using the youtube code ( eg. -xEzGIuY7kw)

Comment 22 by dhall5, Dec 06, 2007
please add this!!
Comment 23 by miqueo, Dec 09, 2007
Please add this feature.
Comment 24 by eropko, Dec 13, 2007
very needed feature
Comment 25 by gui...@dvdfr.com, Dec 15, 2007
Would be very usefull!
Comment 26 by mitchell.chrisj, Dec 15, 2007
This would be so useful, you really need to implement it!
Comment 27 by bence.nagy, Dec 19, 2007
I need it!
Comment 28 by sachin.nashikkar, Dec 31, 2007
I need it!
Atleast - Callbacks for video start/stop/pause/finish.
Comment 29 by angie.fdes, Dec 31, 2007
This feature would be of great use to me also. please make it available soon.
Comment 30 by shpagin, Jan 05, 2008
I waiting for this feature aswell!!!!! A lot of developers will be really grateful!
Comment 31 by lach85, Jan 07, 2008
yes please!
Comment 32 by jkoprax, Jan 09, 2008
i need it too!
Comment 33 by darron.driver, Jan 10, 2008
Yes please!
Comment 34 by Thomas.Marz, Jan 14, 2008
Same here, i need this.
Main priority is to get an event when the video has finished
(...in order to start another video)
Comment 35 by victorantos, Jan 14, 2008
yes, useful!
Comment 36 by yngyani, Jan 15, 2008
Video duration is know by the yt.duration method but it would be good to have a 
method to know the current time of the video clip itself.

to give a background the original post was put up on the GData api :

Hi, 

I am new to this forum and am not sure if my question is relevant 
here. 


We are looking at generating preview clips for unregistered users 
(guest) on our website. 


our videos are hosted on youtube and we are planning to use the api to 
fetch the requested videos and want to limit it to half minute or so. 


does the api have any methods to determine the lenght of the video to 
be played. 


thanks in advance, 
Ganesh

Comment 37 by rgirard59, Jan 16, 2008
Any eta on this?
Comment 38 by abraxxus, Jan 18, 2008
Oh man! This is what I have been trying to do for a week!
I have large videos that I will be posting. I want to have a link on my page that
will scrub to a specific time in that video. for Indexing. This is perfect.

Thanks,
Any ETA?
Comment 39 by jarulkumarasan, Jan 18, 2008
YES PLEASE!!!!!!!!!!!! :) 

Comment 40 by draca007, Jan 22, 2008
to limit the the video duration, there is already kinda tool for that e.g.
SearchlesTV Remash (www.searchles.com), cool feature, I use that often.  
Comment 41 by royce.whelan, Jan 29, 2008
need to unload/load movies badly please... or some way to redirect the youtube player
to a new video... getting desperate here
Comment 42 by stjepan.rajko, Jan 31, 2008
Could really use notification of current time for annotation purposes...  I'm
applying for a grant related to this functionality, ETA would be greatly appreciated :-)

Thanks in advance!
Comment 43 by japhie, Feb 12, 2008
A JS API would be a fantastic, much needed, and logical addition to the suite of
already available functionality YouTube's APIs provide.

I'm certainly looking forward to having access to these sorts of functions!
Comment 44 by PEDROALBERTOGALLARDO, Feb 15, 2008
Yes, this would be definitive step-forward in flexibility and adding a lot of 
business values to our work. I am struggling to offer an on-line broadcast to a 
regional tv channel, splitting its programs into small pieces, but I am not able to 
detect when a click ends to jump to the following one. Please add this feature.
Comment 45 by lucas.gonze, Feb 15, 2008
Without an API to control the YouTube player, I have to write a player of my own for
YT content, and I'd rather not get in a battle over that issue.  


Comment 46 by bi.i...@gmail.com, Feb 16, 2008
i'd love to see it happed, as i'm making a site using youtube's movies! thanks!
Comment 47 by durech, Feb 17, 2008
definitely
Comment 48 by bgriffiths, Feb 18, 2008
this would be fantastic
Comment 49 by au...@hotmail.co.jp, Feb 19, 2008
Yah, please, tell me when done!
Comment 50 by codeko, Feb 21, 2008
tell me too!
Comment 51 by smsnieuwjaar, Feb 24, 2008
this would be nice
Comment 52 by wuboys, Feb 25, 2008
Add this please!!
Comment 53 by mitchell.chrisj, Feb 27, 2008
This thead (http://groups.google.com/group/youtube-api-
gdata/browse_thread/thread/635d267b229e09d1) back in November 2007 said such a 
feature was going to be released soon, this post 
(http://apiblog.youtube.com/2008/02/important-info-that-could-affect-you.html) on 
the 11th of Febraru says they are working on it. Some clue of when this is likely to 
be done would be great!!!!!
Comment 54 by cmedel, Feb 27, 2008
cool !!!
Comment 55 by dannyrobinson, Feb 27, 2008
pretty please!
Comment 56 by suresh.balineni, Feb 29, 2008
Fix it as soon.
Comment 57 by vagalumeweb, Mar 01, 2008
For me the most important feature will be callbacks when the video finishes, this way
you would be able to create your own non-stop "playlist" of videos. I really would
like to be notified when this is out.

This feature will change the "embed world" ;)
Comment 58 by campbell.sx, Mar 01, 2008
This feature is one of the most important for developers to create powerful apps with
youtube API, i would be able to create my own playlist but now the only way is
developing your own video player in flash, is there another way to do this with the
original embedded video player?

Thank you!
Comment 60 by vincent.vangemert, Mar 03, 2008
Just my 2 cents but I can already use these features and got a example ready. I'm
able to make playlists, stop/start/pause, change and mute the volume, repeat and
shuffle videos and more, all with JS.
Comment 61 by bgriffiths, Mar 03, 2008
vincent-
can you assign a function to run on video end?
Comment 62 by guy.ernest, Mar 03, 2008
Vincent, 

Please share with us your example.
Comment 63 by vincent.vangemert, Mar 03, 2008
bgriffiths, yes I can. I will show the example, within a few minutes, I will not
release the code until the player is launched and open for public, but I can already
show an example of the beta player. Stay tuned, I will upload it right now.
Comment 64 by vincent.vangemert, Mar 03, 2008
Read and view the example here: http://blog.cavebear.nl
Got a question, you can find my e-mail in the JS code, you can also post here or on
the blog. If this is not what your looking for then.. touche! :)
Comment 65 by cmedel, Mar 03, 2008
cuac :S
Comment 66 by smsnieuwjaar, Mar 04, 2008
why did you deleted it ?
Comment 67 by vincent.vangemert, Mar 05, 2008
I've used a beta player which is currently not publicly available. I will continue
the development of my project privately, but will not release any examples or
self-written documentation until Google releases it into the wild. Please keep
yourself informed by reading their blog. (http://apiblog.youtube.com/)

PS: Love your usbwebserver btw, a WMCity user.



Comment 68 by smsnieuwjaar, Mar 05, 2008
Thanks

I'm also working on a appy, and got it work. 
Maybe we are making the same project?
My script is almost ready.

Gr Leon
Comment 69 by vincent.vangemert, Mar 05, 2008
You got MSN/E-mail/AIM/Yahoo Messenger/Google Messenger or something a like?
I would love to see what you got and maybe share ideas.

You can contact me on: vincent |at| revelus.nl 
Comment 70 by blogsiterubix, Mar 07, 2008
Vincent.vangemert are you talking about YouTube beta player or your own?
Comment 71 by smsnieuwjaar, Mar 08, 2008
The YouTube beta player api, is he talking about
Comment 72 by nadav.dafni, Mar 11, 2008
Yes please add it
Comment 73 by api.stephaniel, Mar 11, 2008
JavaScript player API documentation:
http://code.google.com/apis/youtube/js_api_reference.html

All the other cool stuff from this release:
http://apiblog.youtube.com/2008/03/something-to-write-home-about.html
Status: Fixed
Comment 74 by spacyspacy, Mar 12, 2008
Very nice!

We would also need a function for setting a new video. It is now already possible for
example by overwriting the SWF object code in a div with JS, but this is not good
practice. Why not also add a method setVideo(VIDEO_ID)? This would allow to change
the video withouth completly reloading the player every time a video needs to be changed.
Comment 76 by vincent.vangemert, Mar 12, 2008
This is awesome, thank you for releasing it this quick. One question though, some
links don't work on the API blog such as the chromeless player, which I really would
like to see.
Comment 77 by aamir.nxb, Mar 12, 2008
(No comment was entered for this change.)
0 bytes Download
Comment 78 by aamir.nxb, Mar 12, 2008
(No comment was entered for this change.)
Comment 80 by vincent.vangemert, Mar 12, 2008
Oh I'm so excited, I will be releasing the first beta of my desktop player tomorrow,
which includes manageable playlists, shuffle and repeat functions and much more nifty
features. But first I'm gonna read the ToS, which seems a bit complicated.
Comment 81 by api.stephaniel, Mar 12, 2008
@spacyspacy -- Please file a separate feature request for this functionality. In the meantime, use an iframe 
instead of overwriting the div.

@vincent.vangemert -- Sorry about that, they're fixed, chromeless:
http://code.google.com/apis/youtube/chromeless_player_reference.html
Comment 82 by campbell.sx, Mar 13, 2008
is there the possibility of hide the toolbar video? I've seen it but using the
youtube video player beta.

Thank you¡
Comment 84 by vincent.vangemert, Mar 13, 2008
Hi campbell.sx, the chromeless player is a video player without the toolbar. Read about
it here: http://code.google.com/apis/youtube/chromeless_player_reference.html
Comment 85 by webmas...@quenota.com, Mar 13, 2008
Hi, I tested the example of the new player and ok when tested from your site, i 
copied to my own directory try to test from my client without changes, and it could 
not find the ytplayer (and the function onYouTubePlayerReady never happened). is 
there any requirement to use it, let say to register or something additional ?, 
could you give an example not using swfobject.js.

Thanks.
Comment 86 by webmas...@quenota.com, Mar 13, 2008
I copied the same code to my server dir and it started working ... is it any 
constrain to execute from client ?..., an example without using swobject would be 
nice (to clarify the difference between ytplayer, myytplayer and playerapiid).

Thanks. 
Comment 87 by webmas...@quenota.com, Mar 13, 2008
it is working now from the server, without swobject. I dont know why it does not 
work when it is started from the client. less priority now.
thank you anyway.
Comment 88 by api.stephaniel, Mar 13, 2008
Hi quenota -- You need to run the code from a webserver, otherwise it won't work.
You're probably better off not posting support questions in the comments of this
closed feature request :) Go to the forum: http://groups.google.com/group/youtube-api

Thanks,

Steph
Comment 89 by abraxxus, Mar 14, 2008
awesome! this is what I needed. But.. Im trying to seekTo(seconds) from the start. I
need to start the video at (N) seconds. I tried to put a seekTo(N) in the
onYouTubePlayerReady() function, but that did not work. It seems to be triggering the
function, because I can put an alert in say, play() and it fires. Just not seeking or
playing. Any Ideas?

Thanks!
-Abe
Comment 90 by abraxxus, Mar 14, 2008
oops, moving to appropriate group =)
Comment 91 by euribates, Mar 14, 2008
[English version forward]

He hecho una pequeña introducción a esta nueva funcionalidad de la API 
en mi blog, junto con una pequeña demo usando un botón externo 
para controlar simultánemanete la reproducción de dos vídeos. Está aquí:

<http://elornitorrincoenmascarado.blogspot.com/2008/03/api-para-el-reproductor-de-youtube.html>

O en version corta de tinyurl:

<http://tinyurl.com/2ccjhp>

[English]
I wrote a short introduction to this new funcionality of the YouTube API
on my blog, including a demo using a external button to play and pause two videos 
simlutaneoously. 

The post is here:

<http://elornitorrincoenmascarado.blogspot.com/2008/03/api-para-el-reproductor-de-youtube.html>

Or you can use the tinyurl version:

<http://tinyurl.com/2ccjhp>

The post is in spanish only, I've had no time to translate to English, sorry.
Comment 92 by pierre.bonnefoy, Mar 16, 2008
Moreover, I would be interested that those API to be also available directly from
Flash AS3.
Shall I create a new issue for such a request ?
thx
Sign in to add a comment