问题
The video I have included in my app only works on certain devices. For example, it works perfectly on iPhones, the Galaxy S6, Nexus 6, and so on. However, the video loads infinitely on the Note 4. Does anyone have a solution to this?
Here is a snippet of how I am calling the video.
<ion-view view-title="Compensation Philosophy">
<ion-content has-bouncing="false"; overflow-scroll="true" >
<div class="video-container">
<video controls class="videox"
src="VideoResources/Pennacchio_Rewards_Philosophy.mov"
poster="VideoResources/sshot.png"></video>
</div>
回答1:
I think that should be mostly because of video encoding. You should try with some sample video by searching them from internet and once you find some video which is working and your video is not working, then maybe after comparison, you may be able to get find out which all formats are supported on your phone.
For example, refer: https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
回答2:
@Darshak,
Digish was close to the right answer.
From Supported Media Formats | Android Developers
The table below describes the media format support built into the Android platform. Note that any given mobile device may provide support for additional formats or file types not listed in the table.
Note: Media codecs that are not guaranteed to be available on all Android platform versions are accordingly noted in parentheses—for example "(Android 3.0+)".
- H.263
- H.264 AVC - (Android 3.0+) -
- H.265
- HEVC - - (Android 5.0+)
- MPEG-4 SP
- VP8 - (Android 4.3+) (Android 2.3.3+)
- VP9 - - (Android 4.4+)
You can see the different formats and when they were supported for encoding and decoding. In addition, some formats require hardware, and as the documentation says, the mobile device may provide support for additional formats or file types.
So to completely answer the question, if the mobile device does not provide a solution for decoding the video, then the browser does not provide a solution; and so the HTML does not provide a solution, when the browser does not have a solution.
来源:https://stackoverflow.com/questions/33081951/when-coding-in-html-why-does-video-load-on-some-android-devices-and-not-others