will-moss / erin

Self-hostable TikTok feed for your clips. Make a TikTok feed with your own videos
MIT License
229 stars 9 forks source link

[feat] Playlists #10

Open accforgithubtest opened 5 days ago

accforgithubtest commented 5 days ago

I saw this post on reddit and immediately thought erin could probably include this feature.

My understanding is that, in erin, the folder structure already serves as a sort of playlist.

What could be potentially added are visual cues about the playlist, along with features to allow some reasonable level of navigation and auto playback.

I am thinking -

  1. Option to go in full screen (another button in the bottom bar perhaps ?).
  2. A new feature controlled by environment variable to proceed to next video (PLAYLIST_MODE=true/false), which will automatically play the next video after the current one ends. Given there already exists ways to easily go to previous video, as well as seek, this should be a very useful feature.
  3. Some way to "navigate/browse" the folders / subfolders / one level up folder as a side bar or something like that. Selecting a folder is basically the same as a "playlist".

I understand the reddit post is also looking for a way to continue the streaming from a specific point as someone else viewing / or time based, but I am not sure if something like that can be implemented here. I am just thinking of some feature that might be useful in erin.

Would you consider if any of these features belong in erin ? Looking forward to hearing your thoughts / ideas.

will-moss commented 5 days ago

Hi,

Thanks a lot for opening the issue, and most importantly for all the great ideas and suggestions.

To address every point :

Thanks a lot once again, and let me know if you see anything else!

Looking forward to releasing those great features very soon.

accforgithubtest commented 4 days ago

Looking forward to seeing the new features. You are right, I will try out the AUTOPLAY_ENABLED settings now. Thanks & Cheers !

will-moss commented 1 day ago

Just released the new features! You can pull the latest image.

There is now a new button dedicated to viewing the playlists that were discovered on disk, and you can easily browse through any of them by tapping the button, and picking a playlist. (I thought initially that a gesture-based navigation would be simpler, but I was wrong, or so I believe now. I concluded that adding a fourth button wouldn't be an issue for anyone, and would make using the app easier than introducing a new hand gesture).

Additionally, you now have three double-tap mechanisms : seek backward, enter / exit fullscreen, and seek forward, depending on which third of the screen you double-tapped.

Hoping that it works smoothly on your end, and meets the initial demand!

Edit : Should the controls be hidden in fullscreen mode?

accforgithubtest commented 1 day ago

Thank for such a quick update !

I just pulled the latest image, and agree that the current implementation for browsing the folders is clean and easy to use with the button there. The double tap features are good too.

Just want to see what your thought on this is - I guess sometimes the pause and full screen being center-tap based is a bit hit/miss, but thats a minor thing imo, so the current implementation for this is good.

I noticed few issues -

  1. The browser list is displaying both folders and files. With a lot of videos, the files being shown there is not practical, takes a while to scroll to the next folder. So, if possible, can only the folders be listed and not the individual files ? Nested folder makes the problem worse when all the files are listed. So, displaying only the folders and nested folders would make it less cluttered.

  2. Upon selecting the video from browser list, it is not playing the correct video, but some other random video - not even from the correct folder but a different folder. I tried this a few times already and see the issue consistently.

  3. Is it possible to get the playlist / folder UI to follow the same theme as the browser / system ? I am on a Ubuntu desktop with firefox browser, with ubuntu system set to dark theme and firefox set to follow system theme. The browser list displays in white / light theme.

If these issues are sorted, I think the current implementation is pretty good for covering the playlist feature.

Should the controls be hidden in fullscreen mode?

Is it possible to hide controls in full screen but show them on mouse move ? Would be nice to see controls easily without having to exit full screen, but it will be nice to have them hidden if there is no mouse activity for x seconds.

will-moss commented 22 hours ago

Thanks to you for the feedback, all the ideas, and reporting back on the issues!

About :

Once again, thanks a lot. It's very enjoyable to see what the app is becoming.

accforgithubtest commented 15 hours ago

Thanks for the reply !

So there would be this play/pause button in the center, and only double taps would be handled on the video itself for fullscreen and seeking forward/backward

Yes, that sounds perfectly fine, and should make it clear to user.

For the folder structure - Most files have non-english (asian languages) characters in the file names. Does that cause any issues ? I will try to create a folder structure to recreate the issue and share it.

every video has its own folder with the mp4 file and the JSON file that represent it?

No, that is not the case. Most files are videos from phone sitting in one folder. I have created folders and renamed files based on location of the trip, or events or something or some description, etc. There are no json files created, just videos in folders.

Thanks again for all your work and effort & Cheers !

will-moss commented 13 hours ago

Alright, thanks a lot once again.

You were absolutely correct for the Asian characters!

I have just published a new release that includes everything discussed :

You can pull the latest image, and I hope that everything works way better now!

accforgithubtest commented 7 hours ago

@will-moss - awesome and that was quick !

All the above points are working well as expected.

I have found that I have a few files with emoji and "%" in the files names. Looks like these files names need fixing as they still show up as individual files in the file browser - hopefully the last fix for this feature !

Thanks a ton for all your efforts !