1

I'm using vitamio lib to make a video player. However, I can not find a way out to show embed subtitle. I've searched thoroughly on the Internet but there is no sample code. Here is my code :

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");
        }
    });

}
Toseef Khilji
  • 17,192
  • 12
  • 80
  • 121

1 Answers1

0

You can use Vitamio 4.0 preview version

Crossle Song
  • 10,104
  • 2
  • 29
  • 38
  • I try, and aways get this error: `THIS SUBTITLE NO DECODER 0x53526970` and `NO SUBTITLE DATA FOUND -1` Crossle – Florida Jul 19 '15 at 01:21