2018-07-25

一个视频播放JZVideoPlayer小demo

1.导入依赖:implementation'cn.jzvd:jiaozivideoplayer:6.2.10'

2.activity_main布局:

        android:layout_width="match_parent"

        android:orientation="vertical"

        android:layout_height="match_parent">

        android:id="@+id/videoplayer"

        android:layout_width="match_parent"

        android:layout_height="match_parent"/>

3.MainActivity主要代码:
videoplayer = (JZVideoPlayerStandard)findViewById(R.id.videoplayer);

videoplayer.setUp(视频网址,JZJZVideoPlayer.SCREEN_WINDOW_NORMAL,视频名字);

你可能感兴趣的:(2018-07-25)