Lines Matching full:instance
70 2. Initialise a MediaExtractor instance with `new MediaExtractor()` and a TimeAnimator instance with
72 3. To start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
74 4. On your MediaExtractor instance, call `getTrackCount()` to know how many tracks you have in your streams.
78 on your MediaExtractor instance, where `i` is the index of your selected track.
80 on your MediaExtractor instance.
81 6. Create a MediaCodec instance by calling `MediaCodec.createDecoderByType(mimeType)`.
82 7. Configure your MediaCodec instance with `configure(trackFormat, textureView, null, 0)`,
83 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
84 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnimator animation,
87 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
89 MediaDecoder instance, using `queueInputBuffer(index, 0, size, presentationTimeUs, flags)` method.
92 TimeExtractor instance (this is a blocking operation and should be done outside the main thread).
96 13. In `onPause()` or if you have reached the end of the stream, call `end()` on your TimeAnimation instance,
97 then call `stop()` and `release()` on your MediaCodec instance, and finally, call `release()` on your
98 MediaExtractor instance.