didStartPlayingClip
Introduction
The didStartPlayingClip(atIndex:)
method notifies the SDK that the user has started playing a new key play clip at the specified index. This function is critical for synchronizing the playback state between your app and the SDK, allowing for accurate tracking and management of clip interactions within the event.
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
index | Int | The array index of the key play clip that has just started playing.This index corresponds to a flattened list of clips. | 0 |
Code Example
// Notify the SDK that the user has started playing the key play clip at index 0.
eventInterface.didStartPlayingClip(atIndex: 0)