Video Player – Android App Source Code

Overview

This is a android all format supported video player with multiple featured mentioned below. In this user select video from custom gallery into app or can search folder and video and play them.

Demo Apk Link :

https://drive.google.com/file/…

Features

* Support RTMP , HLS (http & https) , MP4,M4A etc.

* Gestures for volume control

* Gestures for brightness control

* Gestures for forward or backward

* Fullscreen by manual or sensor

* Try to replay when error(only for live video)

* Set video scale type (double click video will switch the scale types in app,you can find the difference)

* FitParent:scale the video uniformly (maintain the video’s aspect ratio) so that both dimensions (width and height) of the video will be equal to or less than the corresponding dimension of the view. like ImageView’s CENTER_INSIDE.

* FillParent:scale the video uniformly (maintain the video’s aspect ratio) so that both dimensions (width and height) of the video will be equal to or larger than the corresponding dimension of the view .like ImageView’s CENTER_CROP.

* WrapContent:center the video in the view,if the video is less than view perform no scaling,if video is larger than view then scale the video uniformly so that both dimensions (width and height) of the video will be equal to or less than the corresponding dimension of the view.

* FitXY:scale in X and Y independently, so that video matches view exactly.

* 16:9:scale x and y with aspect ratio 16:9 until both dimensions (width and height) of the video will be equal to or less than the corresponding dimension of the view.

* 4:3:scale x and y with aspect ratio 4:3 until both dimensions (width and height) of the video will be equal to or less than the corresponding dimension of the view.

Requirements

Android Studio and Basic knowledge of java

Instructions

As the project is complete all user need to do is import the project and sync and its ready to go.

Related