Interface IMediaSampleSourceTrack
interface IMediaSampleSourceTrack
Extends com.amazon.apmf.IStandard
MediaSampleSourceTrack represents the audio/video track that
will be added to MediaSampleSource. It represents a queue of A/V media
samples that are pushed to the track for playback based on the
presentation timestamps of the media sample.
This object allows apps to create as many audio/video tracks as needed for
playback. Typically one audio and one video tracks are created.
Methods
start()
void start()
Prepares the MediaSampleSourceTrack to start accepting MediaSamples.
queueMediaSample()
Queues a MediaSample to MediaSampleSourceTrack’s queue. Apps must enqueue samples in decoding order.voidqueueMediaSample(IMediaSample*mediaSample)
Parameters
mediaSample
IMediaSample* — Required
The media sample to be enqueued to track.
flushMediaSamples()
void flushMediaSamples()
Flushes all the pending MediaSamples that were queued to MediaSampleSourceTrack.
end()
void end()
Signals end of track. MediaSampleSourceTrack will not accept
MediaSamples after this call.
seek()
Seek to a positionvoidseek(i64positionMs)
Parameters
positionMs
i64 — Required
The position in milliseconds.

