Methods and Events of the Flash-Only Player API and the Smart Player API Equivalents

Product
Video Cloud
Applies to Roles
Publisher, Developer
Version
Brightcove 5
Modules
Player API
Edition
All

Brightcove offers two player APIs for creating dynamic solutions for Video Cloud players:

  • The Flash-Only Player API—The legacy Player API for creating JavaScript solutions and ActionScript plug-ins for Flash players only, with no support for HTML players
  • The Smart Player API—The JavaScript API for creating solutions for Video Cloud players that work in both Flash and HTML mode, that does not yet support all the features available in the Flash-Only Player API

Smart Player API Limitations

The Smart Player API does not support methods and events required for coding the following areas:

  • No support for creating solutions for playlists
  • No support for designing the layout or look of the player interface
  • No support for integrating advertising
  • No support for customizing any menus of the player
  • No support for searching for content using the Smart Player API; use the Media API instead

JavaScript Methods for the Plug-In Player API and the Smart Player API Method Equivalent

This table lists the method names and attributes for both player APIs when they differ. Method names and attributes not listed here are identical for both APIs.

Flash-Only Player API Method
Smart Player API Method
videoPlayerModule.getCurrentVideo() videoPlayerModule.getCurrentVideo
 (callbackHandler)
videoPlayerModule.getCurrentRendition() videoPlayerModule.getCurrentRendition
 (callbackHandler)
videoPlayerModule.getIsPlaying() videoPlayerModule.getIsPlaying
 (callbackHandler)
videoPlayerModule.getVideoDuration() videoPlayerModule.getVideoDuration
 (callbackHandler)
videoPlayerModule.getVideoPosition() videoPlayerModule.getVideoPosition
 (callbackHandler)
videoPlayerModule.loadVideo
 (videoID:Object,"id")
videoPlayerModule.loadVideoByID
 (videoID:Object)
videoPlayerModule.loadVideo
 (refID:Object,"referenceId")
videoPlayerModule.loadVideoByReferenceID
 (refID:Object)
contentModule.getMedia
 (videoID:Object,"id")
contentModule.getMediaByID
 (videoID:Object,callbackHandler)
contentModule.getMedia
 (refID:Object,"referenceId")
contentModule.getMediaByReferenceID
 (refID:Object,callbackHandler)
contentModule.getMediaAsynch
 (videoID:Object,"id",mode:String = "full")
contentModule.getMediaByID
 (videoID:Object,callbackHandler)
contentModule.getMediaAsynch
 (refID:Object,"referenceId")
contentModule.getMediaByReferenceID
 (refID:Object,callbackHandler)
 getCuePoints(videoID:Number getCuePoints(id, callback)

JavaScript Events for the Flash-Only Player API and the Smart Player API Event Equivalent

This table lists the event paths for both player APIs when they differ. Event paths not listed here are identical for both APIs.

Flash-Only Player API Event Smart Player API Event
BCExperienceEvent.TEMPLATE_READY brightcove.api.events.ExperienceEvent.TEMPLATE_READY
BCMediaEvent.BEGIN brightcove.api.events.MediaEvent.BEGIN
BCMediaEvent.CHANGE brightcove.api.events.MediaEvent.CHANGE
BCMediaEvent.COMPLETE brightcove.api.events.MediaEvent.COMPLETE
BCMediaEvent.ERROR brightcove.api.events.MediaEvent.ERROR
BCMediaEvent.PLAY brightcove.api.events.MediaEvent.PLAY
BCMediaEvent.PROGRESS brightcove.api.events.MediaEvent.PROGRESS
BCMediaEvent.STOP brightcove.api.events.MediaEvent.STOP
BCCuePointEvent.CUE brightcove.api.events.CuePointEvent.CUE

Resources by project approach