New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI][iOS] No audio and video playback in Web-UI (on iOS devices) #33652
Comments
did you also disable the files_videoviewer app ? are you opening this from the regular files list or from a public link ?
Do you mean the whole page only contains a single video tag ? If yes, I don't think this is generated by ownCloud as we don't have such pages. The files_videoviewer app is able to generate a popup video player that appears as overlay on top of the files app. From the screenshot I also don't see the ownCloud body around the player. I suspect that you've simply been redirected to the download URL and the iOS browser is trying to play the file in an embedded dummy page instead of downloading. This is outside the control of OC so I don't think we can fix anything. |
Yes. Same problem.
Regular file list.
Indeed. Seems like the page comes from Apple. My guess is that there is something wrong with this Content Security Policy. Maybe we have to add a Content Security Policy header in the files_videoviewer app? |
It could be a CSP issue, yes. |
Something like this:
|
Another interesting thing is the request: On the ownCloud Manual PDF file it looks like this
on a MP3 file like this
|
https://securityheaders.com/?q=cloud.owncloud.com&followRedirects=on |
Steps to reproduce
Expected behaviour
The file should be played with the iOS audio player
The body tag looks like this:
<video controls="" autoplay="" src="http://172.42.16.210:8888/ecko.mp3" type="audio/mpeg" class="media-document audio iPhone"></video>
Actual behaviour
Screen is empty
The body tag looks like this:
<video controls="" autoplay="" src="http://172.42.16.210:980/remote.php/webdav/Musik/Curtis%20Mayfield%20-%20Superfly%20(EckoTronic%20Movin%20%20Remix).mp3" type="audio/mpeg" class="media-document iPhone invalid video"></video>
In the Console I can see 13 errors:
Looks like the problem is:
Failed to load resource: ... Plug-in handled load
and/orRefused to load ... because it appears in neither the media-src directive nor the default-src directive of the Content Security Policy.
Server configuration
Operating system:
iOS 12.1
ownCloud version:
10.0.10
The text was updated successfully, but these errors were encountered: