Skip to main content

didStopPlayingClip

Introduction

The didStopPlayingClip(atIndex:) method notifies the SDK that the user has stopped playing a key play clip at the specified index. This function ensures that the SDK is updated on the change in playback state, allowing it to accurately manage and synchronize clip interactions within the event.

Parameters

ParameterTypeDescriptionExample
indexIntThe array index of the key play clip that has just stopped playing. This index corresponds to a flattened list of clips.0

Code Example

// Notify the SDK that the user has stopped playing the key play clip at index 0.
eventInterface.didStopPlayingClip(atIndex: 0)