API Docs for: 1.0.0
Show:

LADS.Layout.VideoPlayer Class

TAG video player -- a wrapper around the standard html5 video element

Constructor

LADS.Layout.VideoPlayer

(
  • videoSrc
  • collection
  • prevInfo
)
Object

Parameters:

  • videoSrc Doq

    the doq representing our video

  • collection Doq

    the parent collection of this video

  • prevInfo Object

    some 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:

Object:

the object representing public information about the video page (at the moment, just the root of the DOM)

Methods

getRoot

() JQuery object

Return the root of the video page

Returns:

JQuery object:

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