Android 支持视频文件的播放列表吗?
我刚刚开始学习Android,仍然迷茫。 我想问一下Android 2.3.3及以上版本是否支持视频文件的播放列表?
我刚刚发现有 MediaStore.Audio.Playlist 但没有 MediaStore.Video.Playlist。
任何反馈将不胜感激。
谢谢, 艺术风格
I have just started studying Android and I am still lost.
I would just like to ask if playlist for video files is supported in Android 2.3.3 and above?
I just found out that there is MediaStore.Audio.Playlist but no MediaStore.Video.Playlist.
Any feedback would be greatly appreciated.
Thanks,
artsylar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,没有 MediaStore.Video.Playlist 这样的东西。第二件事是,如果您想播放视频列表,我强烈建议您按文件夹播放它们(这意味着您有一种列表视图,可以显示您指定的文件夹中的所有视频并播放所有视频,与播放列表相同) 。为什么?
因为:
使用 MediaStore 的目的是有一种方便的方式来访问 ContentProvider,ContentProvider 是一种包含版权音频(曲目)元数据的数据库。如果您的音频未获得许可,这意味着您不是从合法来源购买曲目,您将无法使用 MediaStore。视频也会发生同样的情况
Well yeah there is no such thing as MediaStore.Video.Playlist. And second thing is that if you want to play a list of video I strongly recommend you play them by folder (meaning you have a sort of listview that displays all of video in a folder you specified and play all of them, same as playlist). Why?
Because:
The point of using MediaStore is to have a convenient way to access ContentProvider which is sort of database that contains meta-data of copyright audio (tracks). If your audio is not licensed which means you are not buying the tracks from legal source, you wouldn't able to use MediaStore. So the same thing happens with videos
使用 MX Player,它可以播放连续的视频,还提供播放列表中下一个上一个视频的按钮
Use MX Player, it plays continuous videos also gives buttons to play next previous video in the list