Skip to content

AbstractVideo

Jacob Seidelin edited this page Jul 11, 2013 · 1 revision

AbstractVideo

The AbstractVideo component is a base component for video player components that takes care of the interaction between the component and the [[Media Controller]] object that controls playback of the media. This component must be extended by a video player component to add UI controls.

Properties

  • mediaElement

    The native video element.

  • videoController

    The [[Media Controller]] object that controls playback of the video.

  • src

    The source file.

  • sources

    An array of video sources. Use this to provide the video content in multiple formats. Example:

    video.sources = [
        {src: "movie.ogv", type: "video/ogg"},
        {src: "movie.mp4", type: "video/mpeg"}
    ];
  • posterSrc

    The path to a poster image that can be shown before the video is started.

  • repeat

    Determines whether playback should loop back to the beginning when it reaches the end.

  • supportsFullScreen

    Determines whether fullscreen mode is supported.

  • isFullScreen

    Read-only property indicating whether the video is currently playing in fullscreen mode.

Methods

  • loadMedia()

    Start loading the video.

  • showPoster()

    Show the poster image.

  • toggleRepeat()

    Toggles the repeat value.

  • toggleFullScreen()

    Toggles fullscreen mode.