Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile开发经验沉淀 #1

Open
herbertliu opened this issue Apr 5, 2017 · 1 comment
Open

Mobile开发经验沉淀 #1

herbertliu opened this issue Apr 5, 2017 · 1 comment

Comments

@herbertliu
Copy link
Member

在Mobile开发过程中,遇到各种问题,解决之后沉淀如下,细分为:

1、经验沉淀:开发过程怎么快速开发并在开发过程中可以兼顾到一些场景的出现
2、疑难问题:一些机型出现的疑难问题,如和解决,以及对应的机型等问题详细描述(截图)

herbertliu added a commit that referenced this issue Apr 5, 2017
@cejako
Copy link

cejako commented Apr 5, 2017

ios系统下,video标签没法实现autoplay

  1. ios9,要求必须要用户事件(如touch,click等)才能触发播放
  2. ios10有一些新的改变,但是也限制颇多,具体可以参考这篇文章,亲测的确如此:
    • 如果媒体文件没有audio track,可以支持autoplay,但是跟我们情况不符
    • 如果同时添加autoplay muted两个属性,可以自动播放,但是是静音的,不是我们期望的效果
    • 如果媒体文件包含audio track或者没有添加muted属性,也不是用户事件触发的,那么单独添加autoplay属性,自动播放之后会立马暂停,也无法使用
    • 自动播放需要video元素位于用户的当前viewport中,且不能被隐藏。这点是必要非充分条件

另外,对于微信中video不能autoplay的问题,找到一个hack方案,不过有待验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants