STWAudioPlayer

abstract class STWAudioPlayer

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
open val mAudioUri: Uri
file path
Link copied to clipboard
open val mDuration: Int
Audio file duration
Link copied to clipboard
open val mIsPaused: Boolean
when session is paused with an external event
Link copied to clipboard
open val mSeekTime: Int
last seek position
Link copied to clipboard
open val mStopRequested: Boolean
should continue playing
Link copied to clipboard
open val mSTWLastPTTBurst: STWLastPTTBurst
Link copied to clipboard
open val mType: Int
type
Link copied to clipboard
open val tempFilePath: String
temporary audio file

Functions

Link copied to clipboard
abstract fun checkPlayBackState()
Link copied to clipboard
abstract fun configProgress()
Link copied to clipboard
open fun getAudioPath(): Uri
Link copied to clipboard
open fun getDuration(): Int
Link copied to clipboard
abstract fun initSTWAudioPlayer(needPlay: Boolean)
Link copied to clipboard
open fun isStopRequested(): Boolean
Link copied to clipboard
abstract fun notifyOutPutChange()
Link copied to clipboard
abstract fun pause(needResetAudioMode: Boolean): Boolean
Link copied to clipboard
abstract fun pauseAudio()
Link copied to clipboard
abstract fun refreshPlayer(needChangeActivityVolumeControlStream: Boolean)
Link copied to clipboard
abstract fun resumePausedSession()
Link copied to clipboard
abstract fun setAudioDuration(audioDuration: Int)
Link copied to clipboard
abstract fun setAudioPlayerStreamType()
Link copied to clipboard
open fun setAudioSessionCallback(@Nullable audioSessionCallback: AttachmentAudioSessionHolder.IAudioSessionCallback)
Link copied to clipboard
open fun setDuration(duration: Int)
Link copied to clipboard
open fun setSeekTime(seekTime: Int)
Link copied to clipboard
abstract fun stopSTWAudioPlayer(needResetAudioMode: Boolean)

Inheritors

Link copied to clipboard
Link copied to clipboard