原生iOS电子邮件客户端(2015)中播放HTML5视频 [英] HTML5 video not playing in native iOS email client (2015)

查看:147
本文介绍了原生iOS电子邮件客户端(2015)中播放HTML5视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送一封包含嵌入在代码中的视频的HTML电子邮件,并在iOS设备的本机电子邮件应用中查看。原生iOS邮件应用程序已支持HTML5视频元素,并且在过去几年中我已经进行了许多测试。

I am trying to send an HTML email with a video embedded in the code and view it on the native email app for iOS devices. The native iOS mail app has supported HTML5 video elements and I have tested this on many occasions in the past few years.

发送几封电子邮件后的上周,我注意到本机应用中的媒体播放器将会加载,渲染视频的初始帧,但不播放视频。我已经浏览了iOS软件发布历史,看看有没有可能影响到这种行为,但是没有成功。

Last week after sending a few video emails, I noticed that the media player in the native app would load, render the initial frame of the video, but not play the video. I've gone through the iOS software release history to see if there was anything that may have affected this behavior but was unsuccessful.

以下是电子邮件

<html>
 <head>
  <title>TEST</title>
  <style></style>
 </head>
<body>
 <div id="html5-video">
  <p>THIS IS A HTML5 VIDEO</p>
  <video controls>
   <source src="http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4" type="video/mp4">
   <p>Your browser does not support H.264/MP4.</p>
  </video>
 </div>
</body>
</html>

附加说明:
- 其他支持的电子邮件环境中的视频播放
- iOS支持H.264 / MP4视频文件格式
- 这个问题在3月或4月的某个时间开始发生

Additional notes: - video plays fine in other supported email environments - iOS supports the H.264/MP4 video file format - the issue started occurring sometime in March or April

任何帮助我指向正确的方向将是非常感谢:)

Any help pointing me in the right direction will be greatly appreciated :)

推荐答案

您的问题有点不准确。


iOS支持MP4的文件格式

iOS supports the file format of MP4

几乎!它实际上支持一些 MP4文件,但不是全部。

Almost! It actually supports some MP4 files, but not all of them.

您需要紧密遵循苹果问题的指导,如果你想要播放视频 - 他们保护他们品牌通过拒绝尝试播放可能在设备上看起来不好的视频...

You need to closely follow the guidance that Apple issue if you want the video to play - they protect their brand by refusing to attempt to play videos that could look poor on the device...

特别是,他们希望您遵守某些条件的比特率,大小,甚至要求您的HTTP服务器支持字节范围请求。

In particular, they want you to adhere to certain conditions for bit rates, sizes, and even request that your HTTP server supports byte-range requests.

如果您符合这些条件,则视频应该播放。

If you meet these conditions - then the video should play.

这篇关于原生iOS电子邮件客户端(2015)中播放HTML5视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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