android - Showing internal subtitle in MediaPlayer -
android - Showing internal subtitle in MediaPlayer -
i have mediaplayer object. show mp4 video files fine.
now want show .mp4 file's internal subtitle. utilize
// code makes player show subtitle in mp4 file playing mplayer.selecttrack(subtitletrackindex);
and yes i'm sure index pointing subtitle track, not sound or video tracks.
the track loads fine no text ever appears on screen. why that? subtitle track's format? have included media info of subtitle track in image below.
does android have limitation on playing specific "muxing mode" or "codec id" subtitles?
any other thought much appreciated.
p.s. , should using android 4.2.2 , due technical decisions prefer utilize internal subtitles rather external ones.
i have same problem , seems native android mediaplayer doesn't back upwards internal subtitles (in case dvbsub codec), "selecttrack" method giving exception. should utilize compile vlc , utilize instead limitation high definition videos, requires hardware acceleration. did find other solution?
android video media-player android-mediaplayer
Comments
Post a Comment