// =======================视频网址 http://www.jianshu.com/p/34d378bffb00
//添加的依赖:
compile 'fm.jiecao:jiecaovideoplayer:4.8.3'
compile 'com.github.bumptech.glide:glide:3.7.0'
//添加的布局
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
android:layout_below="@+id/progressBar"
android:id="@+id/player_list_video"
android:layout_width="match_parent"
android:layout_height="220dp" />
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/player_list_video" android:layout_width="match_parent" android:layout_height="220dp" />作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
JCVideoPlayerStandard player = (JCVideoPlayerStandard) findViewById(R.id.player_list_video); boolean setUp = player.setUp("http://gslb.miaopai.com/stream/ed5HCfnhovu3tyIQAiv60Q__.mp4", JCVideoPlayer.SCREEN_LAYOUT_LIST, ""); if (setUp) { Glide.with(MainActivity.this).load("http://a4.att.hudong.com/05/71/01300000057455120185716259013.jpg").into(player.thumbImageView); }作者:xlijuan 链接:http://www.jianshu.com/p/34d378bffb00 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
boolean setUp = player.setUp("http://movie.vods1.cnlive.com/3/vod/2017/0619/3_620539e5053a479487b47b25b6d00e3e/ff8080815bf6b453015cc1023dd9295d_400.m3u8", JCVideoPlayer.SCREEN_LAYOUT_LIST, "");
if (setUp) {
Glide.with(getActivity()).load("http://a4.att.hudong.com/05/71/01300000057455120185716259013.jpg").into(player.thumbImageView);
}