Lines Matching refs:instance
19 2. Initialise a MediaExtractor instance with `new MediaExtractor()` and a TimeAnimator instance with
21 …o start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
23 4. On your MediaExtractor instance, call `getTrackCount()` to know how many tracks you have in your…
27 on your MediaExtractor instance, where `i` is the index of your selected track.
29 on your MediaExtractor instance.
30 6. Create a MediaCodec instance by calling `MediaCodec.createDecoderByType(mimeType)`.
31 7. Configure your MediaCodec instance with `configure(trackFormat, textureView, null, 0)`,
32 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
33 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnim…
36 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
38 MediaDecoder instance, using `queueInputBuffer(index, 0, size, presentationTimeUs, flags)` method.
41 TimeExtractor instance (this is a blocking operation and should be done outside the main thread).
45 …Pause()` or if you have reached the end of the stream, call `end()` on your TimeAnimation instance,
46 then call `stop()` and `release()` on your MediaCodec instance, and finally, call `release()` on yo…
47 MediaExtractor instance.