1.下载libvlc的arr文件
libvlchttps://download.youkuaiyun.com/download/u010855711/85450866
下载后将libvlc文件夹放入app的同级目录下
2.在Android工程的build.gradle中配置
dependencies {
implementation 'org.videolan.android:libvlc-all:3.1.12'
}
3.activity中代码
private LibVLC mLibVLC = null;
private MediaPlayer mMediaPlayer = null;
private SurfaceView textureView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textureView =