start

Start a playback.

The passed stream does not need to be buffered; the SDK buffers the input.

Return

Whether the stream is playing.

Parameters

stream

Stream to play. Should support mark. FileInputStream is supported even without mark.


open fun start(@NonNull stream: InputStream, loop: Boolean): Boolean

Start a playback.

The passed stream does not need to be buffered; the SDK buffers the input.

Return

Whether the stream is playing.

Parameters

stream

Stream to play. Should support mark. FileInputStream is supported even without mark.

loop

Whether to loop the stream.


open fun start(@NonNull fileUri: Uri): Boolean

Start a playback.

Return

Whether the stream is playing.

Parameters

fileUri

of File to load.


open fun start(@NonNull fileDescriptor: Integer, loop: Boolean): Boolean

Start a playback.

Return

Whether the file was loaded.

Parameters

fileDescriptor

of File to load.

loop

Whether to loop the stream.