DivX Web Player, Javascript & Seek bar
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. :)
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:



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. :-)