Packagecom.brightcove.api.modules
Classpublic class CuePointsModule
InheritanceCuePointsModule Inheritance APIModule Inheritance flash.events.EventDispatcher

API class for handling cue points in video.



Public Properties
 PropertyDefined by
 Inheritedmodule : Object
Returns the instance of the module that is wrapped by this instance.
APIModule
Public Methods
 MethodDefined by
  
CuePointsModule(module:Object)
Constructor.
CuePointsModule
  
addCuePoints(videoID:Number, cuePoints:Array):Boolean
Adds a set of cuepoints to a specified video.
CuePointsModule
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Adds a listener for an event.
APIModule
  
clearAdCuePoints(videoID:Number):Boolean
Clears all ad cuepoints for a specified video.
CuePointsModule
  
clearCodeCuePoints(videoID:Number):Boolean
Clears all code cuepoints for a specified video.
CuePointsModule
  
getCuePoints(videoID:Number):Array
Returns cuepoints for the specified video.
CuePointsModule
  
removeAdCuePointsAtTime(videoID:Number, time:Number):Boolean
Removes ad cuepoints at the specified time for the specified video.
CuePointsModule
  
removeCodeCuePointsAtTime(videoID:Number, time:Number):Boolean
Removes code cuepoints at the specified time for the specified video.
CuePointsModule
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener for an event.
APIModule
Protected Methods
 MethodDefined by
 Inherited
redispatchEvent(event:Event):void
Sends the specified event, usually sent from a handler in order to bubble up non-bubbling events.
APIModule
  
wrapEvent(event:Event):void
Wraps the internal player event with a wrapper event class.
CuePointsModule
Events
 EventSummaryDefined by
   Dispatched when a cue point is reached within a video currently playing back.CuePointsModule
Constructor detail
CuePointsModule()constructor
public function CuePointsModule(module:Object)

Constructor.

Parameters
module:Object — The module to wrap with this API class.
Method detail
addCuePoints()method
public function addCuePoints(videoID:Number, cuePoints:Array):Boolean

Adds a set of cuepoints to a specified video. These cuepoints will cause cuePoint events to fire at the times specified, which the user can subscribe to.

Parameters
videoID:Number — VideoDTO id for the video to have cuepoints added to.
 
cuePoints:Array — An array of objects defining points in time. Each index of the array can either be a number, specifying the time in seconds for the cue, or each index can contain a complex object with time (in seconds), type and description properties.

Returns
Boolean — Whether the specified video can be found in the current lineups of the player.
clearAdCuePoints()method 
public function clearAdCuePoints(videoID:Number):Boolean

Clears all ad cuepoints for a specified video.

Parameters
videoID:Number — VideoDTO id for the video to remove cuepoints from.

Returns
Boolean — Whether the specified video can be found in the current lineups of the player.
clearCodeCuePoints()method 
public function clearCodeCuePoints(videoID:Number):Boolean

Clears all code cuepoints for a specified video.

Parameters
videoID:Number — VideoDTO id for the video to remove cuepoints from.

Returns
Boolean — Whether the specified video can be found in the current lineups of the player.
getCuePoints()method 
public function getCuePoints(videoID:Number):Array

Returns cuepoints for the specified video.

Parameters
videoID:Number — VideoDTO id for the video to retrieve cuepoints from.

Returns
Array — An array of VideoCuePointDTOs.
removeAdCuePointsAtTime()method 
public function removeAdCuePointsAtTime(videoID:Number, time:Number):Boolean

Removes ad cuepoints at the specified time for the specified video.

Parameters
videoID:Number — VideoDTO id for the video to remove cuepoints from.
 
time:Number — The time of the cuepoint to remove.

Returns
Boolean — Whether the specified video can be found in the current lineups of the player and whether cuepoints existed and were removed at the specified time.
removeCodeCuePointsAtTime()method 
public function removeCodeCuePointsAtTime(videoID:Number, time:Number):Boolean

Removes code cuepoints at the specified time for the specified video.

Parameters
videoID:Number — VideoDTO id for the video to remove cuepoints from.
 
time:Number — The time of the cuepoint to remove.

Returns
Boolean — Whether the specified video can be found in the current lineups of the player and whether cuepoints existed and were removed at the specified time.
wrapEvent()method 
protected override function wrapEvent(event:Event):void

Wraps the internal player event with a wrapper event class.

Parameters
event:Event — Any event.
Event detail
cuePointevent 
Event object type: com.brightcove.api.events.CuePointEvent
CuePointEvent.type property = com.brightcove.api.events.CuePointEvent.CUE

Dispatched when a cue point is reached within a video currently playing back.

The CuePointEvent.CUE constant defines the value of the type property of the event object for a cuePoint event.