我正在使用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");
}
});
}