Package com.brightcove.ssai.seek
Class SeekManager
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.seek.SeekManager
- All Implemented Interfaces:
Component
@Emits(events="seekTo")
@ListensFor(events={"seekTo","didSeekTo"})
public class SeekManager
extends AbstractComponent
Class responsible to manage SSAI seek events.
-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
ConstructorDescriptionSeekManager
(EventEmitter emitter, Timeline timeline) Instantiates a new Seek manager. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addSeekListener
(SeekListener seekListener) Adds a seek listenervoid
Removes all seek listeners.void
Removes all set listeners from the EventEmitter.boolean
removeSeekListener
(SeekListener seekListener) Removes a seek listenerMethods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener
-
Constructor Details
-
SeekManager
Instantiates a new Seek manager.- Parameters:
emitter
- the event emittertimeline
- the timeline
-
-
Method Details
-
removeListeners
public void removeListeners()Description copied from class:AbstractComponent
Removes all set listeners from the EventEmitter.- Overrides:
removeListeners
in classAbstractComponent
-
addSeekListener
Adds a seek listener- Parameters:
seekListener
- the seek listener- Returns:
- true if added successfully
-
removeSeekListener
Removes a seek listener- Parameters:
seekListener
- the seek listener- Returns:
- true if removed successfully
-
removeAllSeekListeners
public void removeAllSeekListeners()Removes all seek listeners.
-