doesnt work

in
Subscribe to doesnt work 9 posts, 5 voices



Mando User

doesnt work

 
JoeSimmons Script's Author

It works now. 100% of the time.

 
Mando User

yes, thannnnnnk you :-)

 
JoeSimmons Script's Author

You're welcome. I updated again to make sure the video starts. It starts muted, then plays for a quarter second, then unmutes, skips back to the beginning, and pauses. So it should work 100% of the time.

 
Yansky Scriptwright

Hey Joe I think you left in an extra setTimeout. On line 29:

setTimeout(function(){
setTimeout(function(){var mp=_gel('movie_player');mp.unMute();mp.seekTo(0);mp.pauseVideo();},250);
}, 50);

you probably don't need the outer set timeout.

FWIW, I did some tests and it seems to take around 400 milliseconds from when the video is sent the play command from javascript to when the swf flash movie sends back a newState. (just thought that was interesting) :)

BTW, I played around with making an extension with one of my other youtube scripts a while back. Here is the a xpi file if you wanna have a look: http://forboden.com/coding/alternateflashplayer...
You should start making firefox extensions. They're not that hard once you get the basics down. :)

 
JoeSimmons Script's Author

Actually that timeout is supposed to be there because I found sometimes it pauses it too early and it won't play after that even though it will load, and you have to drag the slider for it to start (that's why I use seekTo also).

 
BmW User

It doesnt enable music :o

http://www.youtube.com/watch?v=c5nLDeKpouA

Theres an example

 
perwel2 User

nope
it doesn't enable music
try this: http://www.youtube.com/watch?v=73N_8GpNIO4

 
JoeSimmons Script's Author

Good catches, but nothing I can do about it. They actually removed the audio tracks from the hardcoded files. They fixed it pretty quick, it won't work anymore.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel