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
playerThe
IVSPlayerinstance which will be monitored -
The
CustomDatawhich is applied to each sample send to the backendThis property is an accessor of the
SourceMetadata.customDataSetting a value to this property will immediatelly change the values by
- sending out the current sample with old
CustomDataand - overriding it with new one for upcoming samples
Declaration
Swift
var customData: CustomData { get set } - sending out the current sample with old
-
The
SourceMetadatawhich is send to the backend with each sampleNotes:
- Existing
sourceMetadatawill be overriden.
Declaration
Swift
var sourceMetadata: SourceMetadata { get set } - Existing
AmazonIVSPlayerCollectorApi Protocol Reference