MediaLink

class MediaLink(val stream: Stream) : Running, CoroutineScope, Choreographer.FrameCallback

The MediaLink class can be used to synchronously play audio and video streams.

Constructors

Link copied to clipboard
constructor(stream: Stream)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isRunning: AtomicBoolean

Indicates whether the receiver is running.

Link copied to clipboard

Specifies the paused indicates the playback of a media pause(TRUE) or not(FALSE).

Link copied to clipboard

Functions

Link copied to clipboard
open override fun doFrame(frameTimeNanos: Long)
Link copied to clipboard
fun queueAudio(buffer: MediaBuffer)

Queues the audio data asynchronously for playback.

Link copied to clipboard
fun queueVideo(buffer: MediaBuffer)

Queues the video data asynchronously for playback.

Link copied to clipboard
open override fun startRunning()

Tells the receiver to start running.

Link copied to clipboard
open override fun stopRunning()

Tells the receiver to stop running.