1. 程式人生 > >第三方 視訊播放器

第三方 視訊播放器

implementation 'fm.jiecao:jiecaovideoplayer:4.8.3'//視訊播放
 <fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard
        android:layout_weight="5"
        android:id="@+id/player_list_video"
        android:layout_width="match_parent"
        android:layout_height="220dp" />
  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 操作起來比較簡單