Support AVS+ and DRA decoding
支持AVS+和DRA解码
使用vlc-android 重新编译打包,可以进行二次开发。
- git clone https://github.com/videolan/vlc-android.git
- git checkout 3b370d9
<com.liulc.vlc.VlcPlayerView
android:id="@+id/vlcPlayerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
VlcPlayerView vlcPlayerView = (VlcPlayerView) findViewById(R.id.vlcPlayerView);
VlcPlayerControl vlcPlayerControl = new VlcPlayerControl(this);
vlcPlayerControl.attachView(vlcPlayerView);
// vlcPlayerControl.load("http://192.168.9.222/dra.ts");
vlcPlayerControl.load("file:///" + Environment.getExternalStorageDirectory().getPath() +"/dra.ts");
vlcPlayerControl.play();