Video - Espial.VOD DOM Object
Go Back...
The Espial.VOD DOM object provides methods for interacting with video.
The table below illustrates the methods available.
Fields | |
NORMAL | Read only. Defines constant for normal speed. |
SLOW | Read only. Defines constant for slow speed. |
FAST | Read only. Defines constant for fast speed. |
FORWARD | Read only. Defines constant for forward direction. |
REVERSE | Read only. Defines constant for reverse direction. |
Methods | |
Play(url, ratingLevel) | Plays a movie. First parameter is the URL used to request a video stream from the video server. Second parameter is an integer indicating the rating level of the video stream. |
Stop() | Stops a movie. |
Pause() | Pauses a movie. |
Terminate() | Terminates a movie. |
SetPlayMode(direction, speed, level) | Sets the play mode. First parameter is one of the direction constants listed above. Second parameter is one of the speed constants listed above. Last parameter is an optional integer representing the level of speed. |
RegisterCallback(callback) | Sets a call back function to be informed of events. The form of
the function must be as follows function(type,info) |
Example usage of the API is shown below:
<script>
function mycallback(type, info) {
alert("Call back occurred: " + type);
}
Espial.VOD.RegisterCallback("mycallback");
Espial.VOD.SetPlayMode(Espial.VOD.FORWARD, Espial.VOD.NORMAL, 0);
Espial.VOD.Play("src=rtsp://movieserver/pal/espial;servertype=mediabase", 1);
</script>
Top of the page
Go Back...
Return to Start