Constructs an instance of UFVideo.
Dom id of video element or jquery instance
Url to mp4 video
Optional
aPosterUrl: stringUrl to poster or null if there is none
Optional
aShowOnPlay: booleanTrue=show element when play is called, false=show element when video is ready to play
Optional
aPlayingCallback: UFCallbackCallback to call when video started playing
Optional
aStoppedCallback: UFCallbackCallback to call when video stopped playing
When assigned true will mute the sound of the video.
Current paused state.
Current time of video (in seconds).
Current volume of the video.
Cleans up used resources and removes listeners.
Handles video being available to play.
Handles end of video.
Pauses the video.
Tries to preload the video.
Plays and shows the video from the start.
True=loop the video (aDoneCallback is ignored)
Optional
aStartCallback: UFCallbackTo call when video has started playing
Optional
aDoneCallback: UFCallbackTo call when video has finished playing
Tries to preload the video.
Resumes the video.
Stops and hides the video.
Calls start callback and trigger VIDEO_START.
UFVideo encapsulates a single video. It offers a preload method to try to preload the video, so it is ready when needed.
Supports
window.UFDEBUG
constant to show debug information.