Brightcove offers two player APIs for creating dynamic solutions for Video Cloud players:
The Smart Player API does not support methods and events required for coding the following areas:
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) |
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 |