Class: LoadEvent

  • LoadEvent provides event data for processing load or preload requests made to the player.

  • The LoadEvent constructor requires a type parameter and optionally accepts media information.

  • The media property within a LoadEvent provides information about the media being loaded.

Constructor

LoadEvent

new LoadEvent(type, media)

Parameter

type

cast.framework.events.EventType

Value must not be null.

media

Optional

cast.framework.messages.MediaInformation

Value must not be null.

Property

media

constant

(non-null cast.framework.messages.MediaInformation or undefined)

Information about the media being loaded.