更新时间:2022-03-18 02:09:37
您正在开发的Web为Android,但要在本地视频播放器推出?
You're developing on the web for android, but you want to launch in the native video player?
如果您提供一个链接,.mp4文件可能能够获得视频播放器的提示弹出给用户,这取决于他们的本地文件关联。
If you provide a link to the .mp4 file you may be able to get the video player prompt to pop up to the user, depending on their local file associations.
这是更容易,如果你正在写一个客户端应用;您可以通过使用 VideoView 。这里有一个例如的。对于闪存介质,但是,你,除非你想使用网页视图是SOL。
It's easier if you're writing a client-side app; you can play html5/mp4 media inside of an Android MediaPlayer by using a VideoView
. Here's an example. For flash media, though, you're SOL unless you want to use a webview.