我正在使用 vitamio lib 制作视频播放器。但是,我找不到显示嵌入字幕的方法。我在互联网上彻底搜索过,但没有示例代码。这是我的代码:
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this))
return;
setContentView(R.layout.videoview);
mVideoView = (VideoView) findViewById(R.id.surface_view);
mVideoView
.setVideoPath(path);
mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_HIGH);
mediaController = new MediaController(this);
mVideoView.setMediaController(mediaController);
mVideoView.setOnPreparedListener(new OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer arg0) {
// TODO Auto-generated method stub
mVideoView.setSubShown(true);
mVideoView.setSubPath(Environment
.getExternalStorageDirectory().getPath()+"/pi.srt");
}
});
}