Hurricane
Hurricane

Reputation: 1554

Cordova app videos not playing on iOS10 - 401 error

I am using Cordova and have added the iOS platform.

One of our test phones is running iOS 10 and for some reasons it won't play videos.

Prior to iOS 10 everything worked perfectly.

We currently are getting 401 errors on the server.

Thought it might possibly be related to this issue.

I also note these WebKit changes.

Anyone come across anything similar?

TIA

Upvotes: 2

Views: 214

Answers (1)

Hurricane
Hurricane

Reputation: 1554

As a workaround the suggestion made by Kalle here worked for me. i.e.

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

You can also test that this is your problem by trying this.

NB If you are using Tomcat, as per here, you can set expire date like this (in your web.xml):

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

Obviously change the values to fit your requirements.

Upvotes: 1

Related Questions