HTML5 <video> element on Android

后端 未结 15 2342
逝去的感伤
逝去的感伤 2020-11-22 15:09

According to:

http://developer.android.com/sdk/android-2.0-highlights.html

Android 2.0 should support the HTML5 video element. I haven\'t been able to get th

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 15:43

    This might not exactly answer your question, but we're using the 3GP or 3GP2 file format. Better even to use the rtsp protocol, but the Android browser will also recognize the 3GP file format.

    You can use something like

    self.location = URL_OF_YOUR_3GP_FILE
    

    to trigger the video player. The file will be streamed and after playback ends, handling is returned to the browser.

    For me this solves a lot of problems with current video tag implementation on android devices.

提交回复
热议问题