out of the box android video player base on ijkplayer
1.base on ijkplayer 2.gestures for volume control 3.gestures for brightness control 4.gestures for forward or backward 5.fullscreen by manual or sensor 6.try to replay when error(only for live video)
just callGiraffePlayerActivity.play(activity,url,title)
,all is done.
<include
layout="@layout/giraffe_player"
android:layout_width="match_parent"
android:layout_height="210dp"/>
notice:the giraffe player is match_parent default,if you want to specify height
or width
you can overwrite layout_width
and layout_width
in include
tag
GiraffeVideoPlayer player = new GiraffeVideoPlayer(activity);
player.play(url);