菜鸟教程小白 发表于 2022-12-12 19:19:15

ios - VideoJS : not working on ipad


                                            <p><p>尝试在我的 salesforce 网页中嵌入 html5 <code><video></code> 标记时,我遇到了一个名为“Videojs”(<a href="http://videojs.com/getting-started/" rel="noreferrer noopener nofollow">http://videojs.com/getting-started/</a>)的出色库。它达到了大部分目的,但是当我尝试在 Ipad 上播放视频时,它失败了。然后我遇到了这个链接( <a href="https://stackoverflow.com/questions/17720816/videojs-not-working-on-ios?newreg=f31f46b6a7294e80b70146c44cc27b77" rel="noreferrer noopener nofollow">VideoJS: not working on IOS</a> ),它说尝试使用 videojs 的默认电影,因为可能存在编码问题。当我按照建议进行操作时,我遇到了一个非常有趣的场景。当我直接将 url( <a href="http://vjs.zencdn.net/v/oceans.mp4" rel="noreferrer noopener nofollow">http://vjs.zencdn.net/v/oceans.mp4</a> ) 输入为:</p>

<pre><code>&lt;source src=&#34;http://vjs.zencdn.net/v/oceans.mp4&#34; type=&#34;video/mp4&#34; /&gt;
</code></pre>

<p>它在 windows 和 ios 中都运行良好。但是当我下载相同的视频并将其保存到 Salesforce CRM Content 库并将 src 路径为:</p>

<pre><code>&lt;source src=&#34;/sfc/servlet.shepherd/version/download/id&#34; type=&#34;video/mp4&#34; /&gt;
</code></pre>

<p>它在 Windows 桌面浏览器中有效,但在 ipad(9.2 版)上无效。我无法理解这个问题。</p>

<p>感谢任何帮助/想法/建议。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我主要在谷歌上搜索 mp4 文件或超大文件的编码问题,所以请使用 handbreak (<a href="https://handbrake.fr/" rel="noreferrer noopener nofollow">https://handbrake.fr/</a>)。解决问题</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - VideoJS : not working on ipad,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/36421927/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/36421927/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - VideoJS : not working on ipad