features
- base on ijkplayer.
- gestures for volume control
- gestures for brightness control
- gestures for forward or backward
- fullscreen by manual or sensor
- lock screen feature
- AspectRatio feature.
API:
-
play(url)
//play video -
stop()
//stop video -
pause()
//pause video -
start()
//start video -
forward()
// forward or back video,example: forward(0.1f) forward(-0.1f) getCurrentPosition()
-
setScaleType(MKPlayer.SCALETYPE_FITPARENT)
//set video scale type -
toggleAspectRatio()
// toggle video scale type -
seekTo(...)
//seek to specify position -
getDuration()
//get video duration -
onInfo(...)
//callback when have some information -
onError(...)
//callback when an error occurred -
onComplete(...)
//callback when the play is over -
onControlPanelVisibilityChange(...)
//callback when control panel visibility change -
setPlayerCallbacks()
//Callback to control next and previous methods