LADS.Layout.VideoPlayer Class
TAG video player -- a wrapper around the standard html5 video element
Constructor
LADS.Layout.VideoPlayer
-
videoSrc
-
collection
-
prevInfo
Parameters:
-
videoSrc
Doqthe doq representing our video
-
collection
Doqthe parent collection of this video
-
prevInfo
Objectsome info about where we came from on the collections page: .artworkPrev string representing where we came from .prevScroll value of the scrollbar from new catalog page
Returns:
the object representing public information about the video page (at the moment, just the root of the DOM)
Item Index
Methods
getRoot
()
JQuery object
Return the root of the video page
Returns:
root of the video page
goBack
()
Return to the collections page from the video player.
initPage
()
Initialize misc parts of the video player
initSeekHandlers
()
Set up handlers for the seekbar
initVideoPlayHandlers
()
Set up handlers for video element and play/pause button
pauseVideo
()
Pause video and change play button image
playVideo
()
Play video and change play button image
timeToZero
()
Take video to time 0 and pause.
toggleVideo
()
Play or pause video depending on its current state