Lines Matching full:instance
18 2. Initialise a MediaExtractor instance with `new MediaExtractor()` and a TimeAnimator instance with
20 3. To start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
22 4. On your MediaExtractor instance, call `getTrackCount()` to know how many tracks you have in your streams.
26 on your MediaExtractor instance, where `i` is the index of your selected track.
28 on your MediaExtractor instance.
29 6. Create a MediaCodec instance by calling `MediaCodec.createDecoderByType(mimeType)`.
30 7. Configure your MediaCodec instance with `configure(trackFormat, textureView, null, 0)`,
31 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
32 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnimator animation,
35 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
37 MediaDecoder instance, using `queueInputBuffer(index, 0, size, presentationTimeUs, flags)` method.
40 TimeExtractor instance (this is a blocking operation and should be done outside the main thread).
44 13. In `onPause()` or if you have reached the end of the stream, call `end()` on your TimeAnimation instance,
45 then call `stop()` and `release()` on your MediaCodec instance, and finally, call `release()` on your
46 MediaExtractor instance.