DivX Web Player, Javascript & Seek bar

2 replies [Last post]
loopmode
loopmode's picture
User offline. Last seen 3 years 12 weeks ago. Offline
Joined: 11/04/2008
Posts: 2
Groups: None

Hi!

From what i see in the developer SDK examples, the web player allows for almost everything to be controlled by javascript, but I see no obvious way to create a custom seek bar. Actually, we can know how long the video is, how much was downloaded, so that's already quite a lot - now we only need to start playback at a specific time.

Is there a way to set a specific time or ratio to start the playback from?
Does maybe the play function itself accept a parameter for the starting point?

Greetings for now.

thumbs up for the divx crew.
I wont abandon the ship only because the web player crashes my Firefox2 since several minor player versions. I will simply go on using the not-quite-as-good-looking 1.3 version :-)

Edit: this last bit seemed a bit negative when reading it afterwards.. I dont mean it that way. :) DivX + web player is cutting edge technology, and I love it. It's just that the latest (very-good-looking) player needs some more time to mature. :)

loopmode
loopmode's picture
User offline. Last seen 3 years 12 weeks ago. Offline
Joined: 11/04/2008
Posts: 2
Groups: None
hey there! thanks alot, I

hey there!
thanks alot, I will try out both the method and the player asap.
The javascripted GUI solution actually was dropped by now, but still I find it interesting to create a good custom html/css/js "kit" for the DivX Web Player. Someone might find it useful, including myself, hehe. :-)

Re: Javascript & Seek bar

You can use:

void Seek(string method, unsigned long percent); // seeks into the video, method can be “DOWN”, “UP”, or “DRAG” to simulate mouse interaction. Call “DOWN” and “UP” in sequence to perform a full seek.

Although it might be nicer to have better than 1/100th precision in a future API rev.

Did you try the latest Web Player build? We're rolling it out across all installers this week and it ought to be more stable:

http://download.divx.com/player/DivXWebPlayerInstaller.exe

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.