Lines Matching full:your
69 1. Create a layout with a [TextureView][4] for your activity.
72 3. To start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
73 where `videoUri` is the URI of your video source.
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.
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.
88 10. Still in `onTimeUpdate`, assuming this isn't the end of the sample, write the media sample to your
90 You will need to set up your buffers, refer to [MediaCodec][1] documentation for details.
91 11. After writing the media sample, you need to advance the sample, calling `advance()` on your
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