哪个视频播放器更适合 Android 中的 .m3u8 格式流式传输视频? VideoView 还是 ExoPlayer?

Which video player is better for .m3u8 format streaming videos in Android? VideoView or ExoPlayer?

我想播放具有不同音轨和不同字幕.m3u8流媒体视频].

这里我有一个问题,比如哪个视频播放器更适合播放.m3u8流媒体视频,性能更好。
我试图通过使用本地播放器解决这个问题,即 VideoView 但在使用 audio-tracks 和 sub-Titles 时,我面临着videoView 的问题。在 videoView 中,我必须通过编码处理所有事情,没有支持形式 VideoView。

我可以用Exo播放器实现吗
任何 body 请提出一个最佳解决方案以支持视频播放器中的音轨和字幕。

ExoPlayer is an application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks. Unlike the MediaPlayer API, ExoPlayer is easy to customize and extend, and can be updated through Play Store application updates.

来自documentation.

Exoplayer 非常易于使用,它支持 SmoothStreaming,如果您的 link 提供多个曲目,它会适应用户连接,如果用户连接不佳,它会 select 低质量曲目,如果用户有良好的互联网,它将 select 高质量曲目。

如果播放音频或视频是您应用的一项重要功能,您绝对应该使用 Exoplayer。

如果您还不相信,Exoplayer 已用于 Youtube、Google 音乐、Google 电影、Facebook、Whatsapp、Spotify、Twitter 等 140,000 个。您可以在这个 I/O lecture.

中查看

如果你想检查一个简单的音频 exoplayer 示例,你可以看到它 here. And read this article.

作为处理过相同问题的人,我认为简单性比其他因素更重要。 VideoView 非常容易使用,所以用它吧。 提示:如果你想制作类似 youtube 风格的游戏,你可以在其上使用框架布局,并在其上放置按钮和图像视图以及其他类似的东西