-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
I can't play video file mp4 on app nextcloud #5917
Comments
You are talking about streaming, right? |
Dear Tobias Kaminsky
I try use VLC can play video
Thank you for support
|
I will upload file m2ts to app nextcloud.
but can't show play video and not streaming external app.
BR.
|
Not sure if m2ts is supported. |
I can confirm almost the same issue on an Samsung Galaxy S8 with latest NC app 3.11. With NC app version lower 3.11 there was never a problem to stream smoothly mp4 files directly in the app. No matter file size and quality. Streaming the same mp4 files in webbrowser is working fine as expected. |
So, I have ran into a similar issue with two android phones (OnePlus 5T and OnePlus 6T), NC app 3.11.1 installed. Tested with both the "default" intro video file that came with the installation (Nextcloud intro.mp4) as well as manually uploaded video. When opening from the app using "Stream with..." and picking VLC, it gets stuck on the loading part for almost precisely 300 seconds before it starts buffering/downloading the file (I don't see any real bandwidth being used before then, doesn't really matter so much on the size of the file, after which it starts to play the file in VLC). I have also tested it with https://demo2.nextcloud.com, and built-in player works fine actually on android app, no issues. I don't see anything useful in the app logs except that one line, and nextcloud.log doesn't have anything in this time frame at all. |
Just a quick update, once I have enabled LetsEncrypt certs on my NC server, everything is working fine in the app. Seems that if the certs are not trusted on Android, it will fail to stream properly for some reason. |
Dear Team nextcloud
Thank you for support
I will use VLC.
it can fast forward and play continue.
Best regards.
Setta
ในวันที่ พฤ. 7 พ.ค. 2020 เวลา 09:25 nijezauzeto <notifications@github.com>
เขียนว่า:
… Just a quick update, once I have enabled LetsEncrypt certs on my NC
server, everything is working fine in the app. Seems that if the certs are
not trusted on Android, it will fail to stream properly for some reason.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APJV6FHKWEKETI5N7PISYS3RQILX3ANCNFSM4MOXK2PA>
.
|
I am using LetsEncrypt certs. Is there a way to update certs in the NC app without reinstalling the app? |
I believe this would happen on its own if you were to remove your current account from the app. Once you get to the "Log in" page and enter the URL of your server with the valid certs, it should refresh them into the app, but that is only a guess. |
I can confirm the same issue on my Huawei P30 with latest NC app 3.11 even after reinstalling the android app and login with new app token. VLC and Webbrowser are working fine. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
Hello, same problem here, videos plays on desktop but not on app. |
Tested with the mobile website in chrome on my galaxy note 9 and it works. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
ping |
pong |
Yep, problem still not solved... |
Problem is not solved even with the latest upgrades on both Fedora Linux Server with all necessary packages and NC 19.0.1 as well as NC mobile Android app. |
I approve, have same failure with playing video in android app 3.11 version. Specially tried 3.10 - video plays correctly. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
still unresolved ;-)
|
At start download from 0 to end and when has a minimum buffer start the video, when you seek video him stop the download and start a new download from seek to end, when has all the data the video is abailable in offline (download completed). In network you can fin several material or lib for a proxy |
Thanks for insights how you handle it on iOS. Maybe we can wait for buffer: https://developer.android.com/reference/android/widget/VideoView#getBufferPercentage() And if this is too low, we wait and resume automatically if buffer is filled again. |
There is an experimental switch to another video player in #8132 (comment) This apk can be installed in parallel. |
I am testing the development apk. Where to wright comments? This edition is playing fine all my videofiles, no matter what filesize. Missing: full-screen support |
Thanks for testing. |
Will that have an effect on NC app for iOS too? |
No. Why/how should it? |
My mistake. I expressed myself wrong. |
Since the Exoplayer is only for Android, this won't be possible. |
Ok thanks for feedback. I will take a more accurate test with iOS and not mix it here. |
Setting up valid certs fixed this for me. Valid certs (not self-signed certs) are required to watch the media via the nextcloud app. In my case I have a certificate authority setup on windows server 2019, generate a csr on the client system, sign the cert on the ca, then present those two @ nextcloud/appdata/keys/cert.key & nextcloud/appdata/keys/cert.crt . |
Apparently the android app requires TLSv1.2 when using WiFi. I had TLSv1.2 disabled in my ssl config, re-enabling it fixed it for me. |
Do you know a way to do this with a Linux system? I just installed Nextcloud for the first time, uploaded 20 GB of my media, then tried streaming from my android and the video never loads. Tried "Stream with" to VLC and Plex, no luck. I don't want to make it public facing, it's solely for encrypted shared media storage between my home devices. But it seems, if the case is that it needs a proper cert, it's impossible to get it working without assigning a public domain to it? |
Even with self signed certificates the Certificate Authority, the
certificates you used to sign with, has a public and private key.
On your PC you have probably said to trust a self signed certificate, and
after that it stopped giving you an error. Same thing applies with a
mobile device. You can add the public key of the CA to your mobile and
you'll be good to go after that. You can Google to find help with words
like, "how to add ca chain to phone android".
…On Tue, Jan 11, 2022, 6:12 PM Viceman256 ***@***.***> wrote:
Setting up valid certs fixed this for me. Valid certs (not self-signed
certs) are required to watch the media via the nextcloud app. In my case I
have a certificate authority setup on windows server 2019, generate a csr
on the client system, sign the cert on the ca, then present those two @
nextcloud/appdata/keys/cert.key & nextcloud/appdata/keys/cert.crt .
Do you know a way to do this with a Linux system? I just installed
Nextcloud for the first time, uploaded 20 GB of my media, then tried
streaming from my android and the video never loads. Tried "Stream with" to
VLC and Plex, no luck. I don't want to make it public facing, it's solely
for encrypted shared media storage between my home devices. But it seems,
if the case is that it needs a proper cert, it's impossible to get it
working without assigning a public domain to it?
—
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHXQ7L6GLJ2ME2MEQTKRULUVTIQ3ANCNFSM4MOXK2PA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm aware of how to add a CA chain, but unsure how to get a CA working on a Linux system. If I was hosting NextCloud on Windows, I could follow your instructions above and simply paste those certs in their respective folders. |
Try googling, "use linux as certificate authority". Is that what you are
looking to do? If yes, find an article for your Linux distribution and I
might be able to help out if you get stuck.
…On Tue, Jan 11, 2022, 7:14 PM Viceman256 ***@***.***> wrote:
Even with self signed certificates the Certificate Authority, the
certificates you used to sign with, has a public and private key. On your
PC you have probably said to trust a self signed certificate, and after
that it stopped giving you an error. Same thing applies with a mobile
device. You can add the public key of the CA to your mobile and you'll be
good to go after that. You can Google to find help with words like, "how to
add ca chain to phone android".
… <#m_-3599194454462599231_>
On Tue, Jan 11, 2022, 6:12 PM Viceman256 *@*.*> wrote: Setting up valid
certs fixed this for me. Valid certs (not self-signed certs) are required
to watch the media via the nextcloud app. In my case I have a certificate
authority setup on windows server 2019, generate a csr on the client
system, sign the cert on the ca, then present those two @
nextcloud/appdata/keys/cert.key & nextcloud/appdata/keys/cert.crt . Do you
know a way to do this with a Linux system? I just installed Nextcloud for
the first time, uploaded 20 GB of my media, then tried streaming from my
android and the video never loads. Tried "Stream with" to VLC and Plex, no
luck. I don't want to make it public facing, it's solely for encrypted
shared media storage between my home devices. But it seems, if the case is
that it needs a proper cert, it's impossible to get it working without
assigning a public domain to it? — Reply to this email directly, view it on
GitHub <#5917 (comment)
<#5917 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEHXQ7L6GLJ2ME2MEQTKRULUVTIQ3ANCNFSM4MOXK2PA
<https://github.com/notifications/unsubscribe-auth/AEHXQ7L6GLJ2ME2MEQTKRULUVTIQ3ANCNFSM4MOXK2PA>
. Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID: @.*>
I'm aware of how to add a CA chain, but unsure how to get a CA working on
a Linux system. If I was hosting NextCloud on Windows, I could follow your
instructions above and simply paste those certs in their respective folders.
—
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHXQ7PKJ4JMBTSMNL7VQ3TUVTP2HANCNFSM4MOXK2PA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I can do that, but it doesn't help me with configuring anything on a NextCloud VM image for access. And that's only part of the equation, this is a stock NextCloud VM image. I need to be able to stream video from NextCloud to the Android app, but all I have is your comment stating a Windows CA cert helped you. No confirmation or update from NextCloud. There's no guarantee installing a third party CA (and potential security risk) and deploying a cert would work, nor does it seem possible. |
Yes my CA is windows, I use windows for dhcp, dns, and CA authority. Other
than those three services I use hyper-v with Linux vms for everything else.
At the time I wrote this note on github I was run nextcloud in a docker
container based on a Linux distribution. I used 'docker exec' commands to
get access to the system and copy the certificates into the right place.
If you already have certificates ready to be installed, the paths mentioned
before might still be correct.
Which Linux vm image are you using? Url where you downloaded it from?
…On Tue, Jan 11, 2022, 7:37 PM Viceman256 ***@***.***> wrote:
Try googling, "use linux as certificate authority". Is that what you are
looking to do? If yes, find an article for your Linux distribution and I
might be able to help out if you get stuck.
… <#m_4791785300018283952_>
I can do that, but it doesn't help me with configuring anything on a
NextCloud VM image for access. And that's only part of the equation, this
is a stock NextCloud VM image. I need to be able to stream video from
NextCloud to the Android app, but all I have is your comment stating a
Windows CA cert helped you. No confirmation or update from NextCloud.
There's no guarantee installing a third party CA (and potential security
risk) and deploying a cert would work, nor does it seem possible.
—
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHXQ7ITRVBZ5DCILNYDQTDUVTSMXANCNFSM4MOXK2PA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unfortunately, appdata doesn't exist in Linux. You would have to somehow integrate them into Apache I believe, and I have no clue how to even begin that. I've already had two instances get corrupt for trying to edit the configs, so it's frustrating there is a lack of documentation for it. I used the full VM, https://www.hanssonit.se/nextcloud-vm/. |
The problem is still there. Streaming in android APP not working. |
@im-n1 Looking at you Firefox log. You don't have the correct codec installed for Firefox to load the video. Firefox on Linux uses libavcodec to play most MP4 files. Try |
I just tried and the lib is installed (I even updated it to 61). The vedio test page https://tekeye.uk/html/html5-video-test-page play mp4 just fine. Looks like mp4 is totally playable in my browser. It it possible that it might be just the video I try to play? Or anything else? |
Steps to reproduce
Expected behaviour
I will can watch video on app nextcloud
Actual behaviour
I can't watch video on app nextcloud
Can you reproduce this problem on https://try.nextcloud.com?
Environment data
Android version:
9
Device model:
G8142 Sony Xperia XZ Premium
Stock or customized system:
Stock 47.2.A.10.107
Nextcloud app version:
3.11.0
Nextcloud server version:
16.0.3
Reverse proxy:
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate
The text was updated successfully, but these errors were encountered: