Player HTML5 APIs (Player V2 Deprecated)

Player/Player UI HTML5 APIs can be used to handle aspects of the player.

Player Functions

Note: Ooyala Player V2 has been deprecated and is scheduled to be disabled. For details and alternatives, see the OVP Release Notes.

The following table describes all the HTML5 methods that are associated with a player. For an example using all of these HTML5 APIs, see the topic Query String and Pass-Through Parameter Examples.

Function Description
setEmbedCode

Set the embedCode for the current player.

Type: String

Example:

<input type=button value="Change Embed Code" onclick="setEmbedCode()"/>
setPlayheadTime

Set the playhead to a new location in seconds with millisecond accuracy.

Type: Number

Example:

   }
   function setPlayheadTime() {
     get_player().setPlayheadTime($('#playhead_time').val());
   }

Related Information

The following list provides links to Backlot documentation that provides some general information about players.

해당 내용이 도움 되었습니까?