AmazonIVSPlayerCollectorApi
@objc(BMAAmazonIVSCollectorApi)
public protocol AmazonIVSPlayerCollectorApi : Collector
-
Attach a player instance to this analytics collector.
With calling this method the collector starts to listen to player events.
Warning: Needs to be called before loading the source or playlist
Declaration
Swift
func attach(to player: IVSPlayer)
Parameters
player
The
IVSPlayer
instance which will be monitored -
The
CustomData
which is applied to each sample send to the backendThis property is an accessor of the
SourceMetadata.customData
Setting a value to this property will immediatelly change the values by
- sending out the current sample with old
CustomData
and - overriding it with new one for upcoming samples
Declaration
Swift
var customData: CustomData { get set }
- sending out the current sample with old
-
The
SourceMetadata
which is send to the backend with each sampleNotes:
- Existing
sourceMetadata
will be overriden.
Declaration
Swift
var sourceMetadata: SourceMetadata { get set }
- Existing