怎么使用编译好的vlc android

2025年03月22日 11:23
有1个网友回答
网友(1):

对源码看得也不太懂,直接使用org.videolan.libvlc.Media.VideoView,然后发现用不了
MainActivity中的部分代码:
VideoView video = (VideoView) findViewById(R.id.my_video);
String sdDir = Environment.getExternalStorageDirectory().getAbsolutePath();
sdDir += "/Movies/test001.mp4";
video.setVideoPath(sdDir);
video.start();
xml布局:
android:id="@+id/my_video"
android:layout_width="match_parent"
android:layout_height="match_parent" /