The Viddler Player JavaScript Framework (VPJS)
Last edited: December 11th, 2008 by Colin DevroeWhat you will need…
- The Player JavaScript Framework.
- An embedded viddler player.
How it works…
The Player JavaScript framework gives a developer access to controls within a loaded viddler player. These controls will include playing and pausing the video or loading in a new video without reloading the page. See the example below.
Seek to…
Load Movie…
How to use it…
First things first you will have to include this line in the <head> of your HTML document.
<script type="text/javascript" src="http://viddler.com/js/viddler.js"></script>
The Functions
The following javascript functions can be used to manipulate the player
viddlerSeek(seconds)
This function will force the player to seek to a time point in the video.
viddlerSwitch(’object_id’,'username’,videonumber,seconds)
This function will force the player to seek to a time point in the video.