VideoView allows you to play a video from a url or a local file with caching functionality.
VideoView is included in its own module which is included by platform module. If you need to include this module, add it to your
To use it:
- Add it to your layout:
- Send the
VideoDataobject through the setUp method:videoView.setUp(VideoData(...)))
If you need to further customize VideoView you can override:
SimpleExoPlayerFactory for adjusting the video scaling, autoplay behavior, and other commonly used methods, for a list of the most commonly used methods please refer to the ExoPlayer docs.
VideoCacheFactory to customize the cache size and cache file path override.