theothernt / AerialViews

A screensaver for Android TV devices including Nvidia Shield, Fire TV, and Chromecast with Google TV. Inspired by Apple TV's video screensaver.
GNU General Public License v3.0
418 stars 32 forks source link

WebDAV support #78

Open TtuxX opened 1 year ago

TtuxX commented 1 year ago

Describe the solution you'd like...

Hi there @theothernt ! :)

Thank you so much for your great app and for adding the option for external media, this is really awesome :)

I would love to have Webdav support on your app, as I am using Nextcloud, and accessing Webdav is much easier for me (and maybe provider-agnostic) than SMB.

Thank you very much in advance for your kind help.

Best regards

theothernt commented 1 year ago

That's a good idea!

I did look into using a Webdav library for Android, but it's not actively maintained, so it might take a while to get it working.

Plus, I'm going to be away for the next 2 or 3 months so development will be quite slow!

TtuxX commented 1 year ago

Ah... thank you very much for your help and the transparency of this information ! I look forward to this feature but will patiently wait until you will have time to work on it :)

Thank you so much !

theothernt commented 1 week ago

Small update. It appears there is finally a library I can use - it's for Android and is actively developed.

I'll give you an update when I have something working.

TtuxX commented 1 week ago

Awesome, thank you so much for this update and working on it ! <3 It will be very useful to display easily the media stored in my Nextcloud instance

theothernt commented 1 week ago

When entering the details for a WebDav connection, is it common to ask for a complete URL

eg. https://192.168.1.2:5003/videos/aerial

or do some apps ask for all the details separately...

HTTP/HTTPS IP/Hostname Port Path

I'm trying to figure out what would be easier (and less error prone) to enter on a TV with a d-pad.

theothernt commented 1 week ago

I'm going to go with my 2nd option - have a serious of inputs as I think it's less likely that people will make mistakes that way.

I might have a beta for you in a couple of days.

theothernt commented 6 days ago

Ok, here is (link removed)

WebDAV support should work but it's only had minimal testing, so let me know if you find any issues. Also, both photos and videos are supported.

TtuxX commented 5 days ago

It works amazingly well for photos, thanks a lot!

It also works kinda for videos, but I cannot have more than like 5-7 seconds of loading, then it freeze and skips to the next video (server is on LAN with ethernet so bandwidth should not be the issue, and media actually play well for few seconds).

Apart from this, do you think the following could be feasible?

Thanks a lot again for your time and super work, I'm can now enjoy my Nextcloud media and that's so cool! :)

theothernt commented 5 days ago

It also works kinda for videos, but I cannot have more than like 5-7 seconds of loading, then it freeze and skips to the next video (server is on LAN with ethernet so bandwidth should not be the issue, and media actually play well for few seconds).

Ok, I'll look into this. Roughly, what is the file size and length of some of the videos?

Have an option to make the folder search recursive and include all the following content? With like a pop-up displaying live the folders names that are being crawled during content indexing (that would be displayed from the connection test and until the end pop-up that summarise the media scan results)

When I have playback working reliably, I will add a recursive option. But I'm not sure I can add any kind of progress to the file scanning. Unless you have 20k files, it should be able to get a file list in a few seconds.

Be able to browse host folders and select them with the remote instead of manually inputing the path? It would be so handy to select one (or even ideally multiple) folder(s) just with the TV stick! When digging deep in a path, having to type it becomes increasingly difficult

If I find another project that provides this, I will use it - but in the meantime, it's a bit too much work for me. My only advice to entering paths, and I have to do it a bit because of testing, is to use the phone app which makes text entry a bit faster.

TtuxX commented 5 days ago
theothernt commented 4 days ago

If you have some time, can you try the Nova Video Player - it uses a version of the library I'm using. I want to see if it plays video without issues.

Their fork/version of the library has some fixes, so I may use that.

theothernt commented 4 days ago

Here is (link removed)

I've updated the internal WebDAV library and added subfolder support.

TtuxX commented 3 days ago

If you have some time, can you try the Nova Video Player - it uses a version of the library I'm using. I want to see if it plays video without issues.

Their fork/version of the library has some fixes, so I may use that.

I installed it and tried to connect it without success to Nextcloud, I have to try again and report back

TtuxX commented 3 days ago

Here is an updated build.

I've updated the internal WebDAV library and added subfolder support.

I installed it, went few folders above the one I previously had selected and now have 296 media selected for playback instead of 58 previously. I selected only pictures in your app settings. However it seems like loading is hanging forever now, and I cannot have pictures start displaying.

I tried selecting again the subfolder I had and that worked on your previous version, and pictures do not load anymore

theothernt commented 2 days ago

Ok, here is another build with a different version of the library. It's the same version that Nova Video Player uses.

If the issues continue, I'll have to make a debug build for you. You'll then have to use the ADB tools to collect the logs and send them to me.

Also, what device are you using?

EDIT: I've tested on the following with no issues (photos and videos)