SDK Reference · Method
getAudioPlayerState
Returns the current audio-player state.
Declaration
public func getAudioPlayerState() -> STAudioPlayerStateOverview
Returns the current audio-player state. Check the documented prerequisites, parameters and return value below. For asynchronous operations, use the relevant media events to observe actual completion rather than treating an accepted request as finished.
Return value
Returns .notInitialized when the audio-player component has not been initialized. Otherwise returns the current STAudioPlayerState.