【问题标题】:how to embed PowerPoint presentation with audio on a webpage?如何在网页上嵌入带有音频的 PowerPoint 演示文稿?
【发布时间】:2021-07-02 05:48:00
【问题描述】:

我正在建立一个适合移动设备的网站。 在那里我需要嵌入一个带有自动播放音频文件的 PowerPoint 演示文稿。 我使用了 PowerPoint 本身生成的以下 iframe 代码 以及来自Stack overflow的一项建议

<iframe src="https://onedrive.live.com/embed?resid=xxxxxxxxxxxxxxxxx;authkey=xxxxxxxxx-egw&amp;em=2&amp;wdAr=1.7777777777777777" width="610px" height="367px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office</a>.</iframe>

这在 chrome 和 edge 上正常工作。 但是当我尝试用我的手机(iPhone 的 safari)打开它时,音频不会自动播放。 我必须按下按钮。 有没有其他方法可以实现这个目标?

【问题讨论】:

  • 这是 Safari 的一个已知问题。您必须进行一些浏览器嗅探并向 Safari 用户显示一条消息以尝试不同的浏览器。

标签: html5-canvas powerpoint html5-audio web-audio-api


【解决方案1】:

当前 PowerPoint 网络嵌入不支持音频自动播放。 使用 SCORM 授权工具将 ppt 文件转换为 HTML 包。 SCORM Software Tools

【讨论】:

    猜你喜欢
    • 2010-09-07
    • 2012-02-05
    • 2012-05-01
    • 2010-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-15
    • 1970-01-01
    相关资源
    最近更新 更多