Previously, I tried to decode the video and then play the video. Although all the audio and video can be played, I cannot synchronize the audio and video. Therefore, I used a third-party video library vitamio to implement the video player function, in this way, you only need to implement playing decoding without worrying about the underlying decoding and display issues. Is to use vitamio
4.0. the live video and Network play functions will be added to the created video player in the future. Main functions:
1. Search for local video files
2. Use listview to display thumbnails, file names, and playback time of local videos
3. Most video formats can be supported. The decoding library used by vitamio is FFMPEG, so many formats can be supported.
4. Supports gesture to adjust the sound and brightness (slide up and down on the left to adjust the brightness, and slide to adjust the volume on the right, mainly in oplayer)
5. Support playing, pause, fast forward, and fast return (the interface is also included in oplayer)
6. Support for text slide search files (mainly from oplayer)
Open Source Address: https://github.com/jwzhangjie/JwZhangJie.git itself clone can be, but if you have to go to the official website to download vitamio's own library, vitamiobundle, Zi. Otherwise, it cannot be run.
The operation is as follows:
It is not convenient to compile, here you can download the compiled APK http://download.csdn.net/download/jwzhangjie/5782875