I’ve setup up NC12 on Nginx 1.12 and PHP7.1-fpm.
After uploading a 278M video I noticed it’s getting downloaded completly before the video player play. That’s true in the File manager and via Link sharing.
Everybody think it’s just not working.
Is it possible to get video to stream instead of downloaded?
I installed FFMPEG but I’m pretty sure it has nothing to do with streaming.
It’s probably an nginx config, since it doesn’t have anything to do with PHP either.
It look like the FileSharer use /download to push the video into the player, thus downloading the whole file.
I feel like the file sharer simply doesn’t support streaming at all.
I personally use the webdav url for streaming videos.
on Android:
I use a webdav browser (ES File Explorer) to browse to my file then click and open with a external player (VLC). This however all on mobile (Android 6.0) have not tried on PC yet as i MirrorCast it to my TV.
not too hard if she owns a tablet you can set it up with shortcuts on the homescreen and automaticly open it with VLC.
Also I tried using the build in player but it has limited support on video files. What worked for me are .MP4 videos but .MKV was a unsupported mime type and .AVI was directly forced to download didn’t even opened the build in player.
the MP4 streamed flawless as seen below.
the build in player probably only supports the .mp4 and webm videos more on this on the link below.
You need to make sure you have the mp4 module compiled into your Nginx, and you may have to specify your own cache settings and fastcgi php handler. So this won’t work straight-off-the-bat until you’ve customised it to your environment. The key setting is simply the command ‘mp4;’, you will know if it works or not by just putting it into a test location section and restarting nginx, if no errors, then you are good to go, otherwise as specified earlier, you will need to include the module in the nginx build or alternatively source a build from a repo which already includes it.
Streaming is now kinda working, without chaning the config. It may have something to do with browser or server package updates.
I did try the config you sent me but I didn’t notice any changes.
As of now, I can’t start playing anywhere else than the start of the video. But at least it start playing and buffering the video without downloading the whole thing. It wasn’t the case before.
Does your nginx config still work with Safari on iOS ? I tried it and unfortunately i’m not able to stream videos from the Safari web browser on an iPhone or iPad (WebUI).
I make my tests with the Nextcloud.mp4 default video.
The streaming works with no issue on windows from various browsers, and with byte range-requests enabled - Only fails on iOS.