我有一个视频网址(渐进式下载或流式传输),我想确定其格式以检查它是否符合 Android 的 支持的媒体格式。我怎样才能检查这个?如果在模拟器上运行就足够了吗?
(据我所知,在设备上进行测试并不是保证,因为某些 Android 设备可能支持其他设备不支持的格式)
I have a video url (either progressive download or streaming) and I want to determine its format to check if it complies with Android's supported media formats. How can I check this? Is it enough if it works on the emulator?
(as far as I understand testing it on a device is not a warranty since some Android devices might support formats that others do not)
发布评论
评论(1)
正如您所说,
在设备上进行测试并不是保证
。我同意。文档本身建议我们在尽可能多的不同设备上进行测试,而这是我们只能通过经验来学习的。到目前为止,我还没有在
MediaPlayer
/VideoView
中遇到可以提取视频元信息的方法。您可以有一个服务器端脚本来告诉您视频的详细信息吗?
Testing it on device is not a warranty
as you said. I agree. Documentation itself suggests us to test on as many different devices as possible, and this is something we can only learn through experience.As of now I haven't come across a method in
MediaPlayer
/VideoView
which could extract meta information of Videos.can you have a server side script which tells you the video's details?