Android : multiple audio tracks in a VideoView?

后端 未结 4 555
旧巷少年郎
旧巷少年郎 2021-02-02 08:52

I\'ve got some .MP4 video files that must be read in a VideoView in an Android activity. These videos include several audio tracks, with each one corresponding to a user languag

4条回答
  •  执念已碎
    2021-02-02 09:47

    Haven't tested myself yet, but it seems that Vitamio library has support for multiple audio tracks (among other interesting features). It is API-compatible with VideoView class from Android.

    Probably you would have to use Vitamio VideoView.setAudioTrack() to set audio track (for example based on locale). See Vitamio API docs for details.

提交回复
热议问题