AttachmentAudioSessionHolder

open class AttachmentAudioSessionHolder

Constructors

Link copied to clipboard
open fun AttachmentAudioSessionHolder(    @NonNull audioUri: Uri,     @Nullable audioSessionCallback: AttachmentAudioSessionHolder.IAudioSessionCallback,     isForForward: Boolean,     type: Int)
Link copied to clipboard
open fun AttachmentAudioSessionHolder(@NonNull stwLastPTTBurst: STWLastPTTBurst, @Nullable audioSessionCallback: AttachmentAudioSessionHolder.IAudioSessionCallback)

Types

Link copied to clipboard
interface IAudioSessionCallback

Functions

Link copied to clipboard
open fun checkPlayBackState()
play or pause the audio session and start from last seek time
Link copied to clipboard
open fun getStwAudioPlayer(): STWAudioPlayer
Link copied to clipboard
open fun isForForward(): Boolean
Link copied to clipboard
open fun isForInstantReplay(): Boolean
Link copied to clipboard
open fun notifyOutPutChange()
Link copied to clipboard
open fun pauseAudio()
to be called when hosting activity is paused
Link copied to clipboard
open fun refreshPlayer(needChangeActivityVolumeControlStream: Boolean)
Link copied to clipboard
open fun resumePausedSession()
resume only session by an external event
Link copied to clipboard
open fun setAudiDuration(audioDuration: Int)
Audio Attachment duration
Link copied to clipboard
open fun setAudioSessionCallback(@Nullable audioSessionCallback: AttachmentAudioSessionHolder.IAudioSessionCallback)
Link copied to clipboard
open fun setProgress(seek: Int)
set seek time
Link copied to clipboard
open fun stopPlay(needResetAudioMode: Boolean)
stop current session