gpt4 book ai didi

ios - Cordova 应用程序视频无法在 iOS10 上播放 - 401 错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:03:34 26 4
gpt4 key购买 nike

我正在使用 Cordova 并添加了 iOS 平台。

我们的一部测试手机运行的是 iOS 10,但由于某些原因无法播放视频。

在 iOS 10 之前一切正常。

我们目前在服务器上收到 401 错误。

认为它可能与this有关问题。

我还注意到 these WebKit 变化。

有人遇到过类似的事情吗?

TIA

最佳答案

作为解决方法,Kalle 提出的建议 here为我工作。即

"Set an expire date to the cookie and the video player in iOS 10 can read back the cookie. Session cookies without an expire date can not be read back by the video player in iOS 10."

您还可以通过尝试 this 来测试这是否是您的问题.

注意 如果您使用的是 Tomcat,根据 here ,您可以像这样设置过期日期(在您的 web.xml 中):

<session-config>
<session-timeout>15</session-timeout>
<cookie-config>
<max-age>7200</max-age>
</cookie-config>
</session-config>

显然更改值以满足您的要求。

关于ios - Cordova 应用程序视频无法在 iOS10 上播放 - 401 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39835345/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com