Class: GoogleIMAVideoFactory

GoogleIMAVideoFactory

Factory for creating video player objects that use HTML5 video tags.

GoogleIMAVideoFactory()

Initialize an instance of the current class using the new keyword along with this constructor.
Properties:
Name Type Description
name string The name of the plugin
ready boolean The readiness of the plugin for use (true if elements can be created)
streams object An array of supported encoding types (ex. m3u8, mp4)

Methods

create(parentContainer, id, ooyalaVideoController, css, playerId) → {object}

Creates a video player instance using GoogleIMAVideoWrapper.
Parameters:
Name Type Description
parentContainer object The jquery div that should act as the parent for the video element
id string The id of the video player instance to create
ooyalaVideoController object A reference to the video controller in the Ooyala player
css object The css to apply to the video element
playerId string The unique player identifier of the player creating this instance
Returns:
A reference to the wrapper for the newly created element
Type
object

createFromExisting(domId, ooyalaVideoController, playerId) → {object}

Creates a video player instance using GoogleIMAVideoWrapper which wraps and existing video element.
Parameters:
Name Type Description
domId string The dom id of the video DOM object to use
ooyalaVideoController object A reference to the video controller in the Ooyala player
playerId string The unique player identifier of the player creating this instance
Returns:
A reference to the wrapper for the video element
Type
object

destroy()

Destroys the video technology factory.