I found the below code on Youtube’s api reference website - http://code.google.com/apis/youtube/js_api_reference.html#Playback_controls. How should I implement them with scriptylightbox?
player.playVideo():Void
Plays the currently cued/loaded video. The final player state after this function executes will be playing (1).
player.pauseVideo():Void
Pauses the currently playing video. The final player state after this function executes will be paused (2) unless the player is in the ended (0) state when the function is called, in which case the player state will not change.
player.stopVideo():Void
Stops and cancels loading of the current video. This function should be reserved for rare situations when you know that the user will not be watching additional video in the player. If your intent is to pause the video, you should just call the pauseVideo function. If you want to change the video that the player is playing, you can call one of the queueing functions without calling stopVideo first.
Important: Unlike the pauseVideo function, which leaves the player in the paused (2) state, the stopVideo function could put the player into any not-playing state, including ended (0), paused (2), video cued (5) or unstarted (-1).
player.seekTo(seconds:Number, allowSeekAhead:Boolean):Void
Seeks to a specified time in the video.
The seconds parameter identifies the time from which the video should start playing.
If the player has already buffered the portion of the video to which the user is advancing, then the player will start playing the video at the closest keyframe to the specified time. This behavior is governed by the seek() method of the Flash player’s NetStream object. In practice, this means that the player could advance to a keyframe just before or just after the specified time. (For more information, see Adobe’s documentation for the NetStream class.)
If the player has not yet buffered the portion of the video to which the user is seeking, then the player will start playing the video at the closest keyframe before the specified time.
The allowSeekAhead parameter determines whether the player will make a new request to the server if seconds parameter specifies a time outside of the currently buffered video data. We recommend that you set this parameter to false while the user is dragging the mouse along a video progress bar and then set the parameter to true when the user releases the mouse.
This approach lets the user scroll to different points of the video without requesting new video streams by scrolling past unbuffered points in the video. Then, when the user releases the mouse button, the player will advance to the desired point in the video, only requesting a new video stream if the user is seeking to an unbuffered point in the stream.
The final player state after this function executes will be playing (1) unless the value of the seconds parameter is greater than the video length, in which case the final player state will be ended (0).
player.clearVideo():Void
Clears the video display. This function is useful if you want to clear the video remnant after calling stopVideo(). Note that this function has been deprecated in the ActionScript 3.0 Player API.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options