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

Cordova app videos not playing on iOS10 - 401 error

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

我们的其中一部测试手机正在运行iOS 10,由于某些原因,它无法播放视频。

在iOS 10之前,一切正常。

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

认为可能与此问题有关。

我也注意到了WebKit的这些变化。

有人碰到过类似的东西吗?

TIA


作为解决方法,Kalle在这里提出的建议对我有用。即

"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."

您也可以通过尝试此操作来测试这是您的问题。

NB如果您使用的是Tomcat,请按照此处(在web.xml中)设置到期日期:

1
2
3
4
5
6
<session-config>
    <session-timeout>15</session-timeout>
    <cookie-config>
        <max-age>7200</max-age>
    </cookie-config>
</session-config>

显然,请更改值以符合您的要求。