SDK Reference · Method
releaseAudioPlayer
Releases the initialized audio-player component.
Declaration
public func releaseAudioPlayer() -> STResultOverview
Use this method when the application no longer needs the audio-player component.
The component is removed from STMediaRunner only when the underlying release succeeds. If release fails, the existing component remains available rather than being discarded.
Return value
Returns .audioPlayerNotInitialized when no audio player has been initialized. Otherwise returns the result of the player release operation.