javascript - 如何在 iOS 上自动播放移动网络视频(参见演示)

标签 javascript ios ffmpeg mobile-safari

是否有任何对图像和音频播放进行排序的库?我猜这是唯一可行的方法..

哪种图片格式效果最好?我猜图片不会像视频那样被压缩,但这个例子对我来说会立即加载:

Demo: Autoplay Inline Video iOS

计划只用 ffmpeg 转换视频。在我开始之前,任何知识和建议都会很棒。谢谢

最佳答案

我相信从 iOS 6.1 开始你就不能再自动播放视频了。
引用这个stackoverflow post

"Apple has made the decision to disable the automatic playing of video on iOS devices, through both script and attribute implementations.

In Safari, on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and auto-play are disabled. No data is loaded until the user initiates it." - Apple documentation.

关于javascript - 如何在 iOS 上自动播放移动网络视频(参见演示),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37535582/

相关文章:

javascript - 在 JavaScript 中,我应该调用 parseFloat 将字符串转换为 float ,还是应该让 JavaScript 转换它们?

JavaScript/Angular : timeout wrapped in function not workink with boolean value

javascript - 按包括日期在内的多个属性对数组进行排序

ios - Objective-C iOS 6 BLE(蓝牙4.0)距离计算

ios - 如何在faSTLane中设置环境变量?

linux - 如何告诉ffmpeg按顺序遍历目录中的所有文件

android - Android中的输入输出路径

javascript - Natviescript 中的 Angular 单元测试 : reflect-metadata shim is required when using class decorators

ios - uiwebview 即使有 delegate = self 也没有加载请求

ffmpeg - 使用 FFMPEG 连接某些 mp4 文件时听不到音频