第三方 视频播放器

implementation 'fm.jiecao:jiecaovideoplayer:4.8.3'//视频播放
 
  JCVideoPlayerStandard player = findViewById(R.id.player_list_video);
        boolean setUp = player.setUp("http://ips.ifeng.com/video19.ifeng.com/video09/2014/06/16/1989823-102-086-0009.mp4", JCVideoPlayer.SCREEN_LAYOUT_LIST, "");
        if (setUp) {
            Glide.with(MainActivity.this).load("http://a4.att.hudong.com/05/71/01300000057455120185716259013.jpg").into(player.thumbImageView);
        }

 相对于 原生的videoview 操作起来比较简单 

 

#############更新

jiaozi更新了,下边是最新依赖

 

compile 'cn.jzvd:jiaozivideoplayer:7.0.5'

地址附上:

https://github.com/Jzvd/JiaoZiVideoPlayer

 

 

 

你可能感兴趣的:(Ui控件,音视频)