onPlayerStarted property

void Function(int totalDuration)? onPlayerStarted
getter/setter pair

Play start notification.

Available since: 1.0.0 Description: When the developer calls startPlay and the SDK has internally prepared the audio device and is about to start playing, the notification will be called back. Use case: Used by developers to update the UI. Related APIs: The notification will be called back after startPlay is called. Caution: None.

  • totalDuration Total playing duration in milliseconds

Implementation

static void Function(int totalDuration)? onPlayerStarted;