当HTML编码,为什么视频负载上的一些Android设备,而不是别人? [英] When coding in HTML, why does video load on some Android devices and not others?

查看:129
本文介绍了当HTML编码,为什么视频负载上的一些Android设备,而不是别人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已包括在我的应用程序的视频仅适用于某些设备。例如,它完美的作品在iPhone,银河S6的Nexus 6,等等。然而,在附注4无限的视频负载,没有任何人有一个解决的办法?

这里是我如何调用该视频的片段。

 <离子查看查看标题=薪酬原则>
    <离子含量有弹跳=假;溢出滚动=真正的>
        < D​​IV CLASS =视频容器>
            <视频控制类=VideoX时
                SRC =VideoResources / Pennacchio_Rewards_Philosophy.mov
                海报=VideoResources / sshot.png>< /视频>
                < / DIV>


解决方案

@Darshak,结果
Digish接近正确的答案。

支持的媒体格式| Android开发者


  

下表描述内置于Android平台的媒体格式支持。 注意,任何给定的移动设备可以提供额外的格式或文件类型表中未列出的支持


  
  

    

请注意:这不能保证适用于所有Android平台的版本在括号,例如相应地指出媒体codeCS(Android 3.0的+)


  

  • H.263

  • H.264 AVC - (Android 3.0以上版本) -

  • H.265

  • HEVC - - (是Android 5.0 +)

  • MPEG-4 SP

  • VP8 - (4.3及更高版本的Andr​​oid)(Android的2.3.3 +)

  • VP9 - - (Android 4.4系统+)

您可以看到不同的格式,当他们支持的编码的和的解码的。此外,一些格式需要的硬件,并为文件说,在移动设备可以提供额外的格式或文件类型的支持

因此​​,为了完全回答这个问题,如果移动设备不提供用于视频解码的溶液中,然后该浏览器不提供解决方案;等等HTML不提供解决办法,当浏览器不具有的溶液中。

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>

解决方案

@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.

这篇关于当HTML编码,为什么视频负载上的一些Android设备,而不是别人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆