abstractnew GoBrain.Pdk.Interfaces.ITracker()
This interface declares the minimum functionality a tracker used by the framework is expected to have.
This interface declares the minimum functionality a tracker used by the framework is expected to have.
Properties:
Name | Type | Description |
---|---|---|
config |
Object | Tracker configuration. |
Logger |
GoBrain.Logger | Instance specific logger to use for all logging. |
Settings |
Object | Runtime settings for the tracker. |
Namespaces
Methods
-
abstractbufferComplete(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 113Called when enough data to play is in the buffer.
-
Called when enough data to play is in the buffer.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractbufferStart(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 122Called when not enough data to play is in the buffer.
-
Called when not enough data to play is in the buffer.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractcomplete(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 131Called when clip has stopped playing.
-
Called when clip has stopped playing.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractdestroy()
GoBrain.Pdk/src/interfaces/itracker.js, line 44Destroys the tracker.
-
Destroys the tracker.
-
abstractduration(duration)
GoBrain.Pdk/src/interfaces/itracker.js, line 140Called when clip duration has changed.
-
Called when clip duration has changed.
Name Type Description duration
Number The new duration.
-
abstractinitialize()
GoBrain.Pdk/src/interfaces/itracker.js, line 36Initializes the tracker.
-
Initializes the tracker.
-
abstractinitialized(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 149Called when clip has been initialized.
-
Called when clip has been initialized.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractmetadata(metadata)
GoBrain.Pdk/src/interfaces/itracker.js, line 158Called when clip metadata has changed.
-
Called when clip metadata has changed.
Name Type Description metadata
Object The new metadata.
-
abstractpause(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 167Called when clip has been paused.
-
Called when clip has been paused.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractplay(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 176Called when clip has started playing.
-
Called when clip has started playing.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractposition(position)
GoBrain.Pdk/src/interfaces/itracker.js, line 185Called when clip position has changed.
-
Called when clip position has changed.
Name Type Description position
Number The new position.
-
abstractqueueItemLoaded()
GoBrain.Pdk/src/interfaces/itracker.js, line 194Called when a new playback item has been loaded.
-
Called when a new playback item has been loaded.
-
abstractqueueItemUnLoaded(event)
GoBrain.Pdk/src/interfaces/itracker.js, line 202Called when playback item has been unloaded.
-
Called when playback item has been unloaded.
Name Type Description event
Object The event data.
Name Type Description currentItem
GoBrain.Dtos.PlaybackItem The new playback item.
-
abstractseeked(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 212Called when clip is done seeking.
-
Called when clip is done seeking.
Name Type Description data
Object optional Any additional data given with the event.
-
abstractseeking(data)
GoBrain.Pdk/src/interfaces/itracker.js, line 221Called when clip is seeking.
-
Called when clip is seeking.
Name Type Description data
Object optional Any additional data given with the event.
-
validate(){Boolean}
GoBrain.Pdk/src/interfaces/itracker.js, line 247Validates a tracker.
-
Validates a tracker.
Returns:
Type Description Boolean