clapper icon indicating copy to clipboard operation
clapper copied to clipboard

FR: Open directory/folder

Open Theluga opened this issue 1 year ago • 6 comments

Like the video automatically play the next file inside the folder? Or an option to add this behavior as default?

Ex: In a folder with 3 files: video1.mp4 video2.mp4 and video3.mp4

Open video2.mp4 (it will play until the end and start playing video3.mp4)

ending video3.mp4 stops the next file.

The three 3 videos could be added to playlist or an option that will always add the folder to playlist.

Could it be done?

Thank you!

Theluga avatar Nov 08 '24 21:11 Theluga

Currently, you can just select one or more files at once in a folder and open them with Clapper from files manager or from Clapper "Add" option. Items play one after another if you set queue progression mode to "consecutive".

Other than that, I can consider adding an ability to simply open a folder for user convenience.

Rafostar avatar Nov 08 '24 21:11 Rafostar

It would be great to have a cli way to open a file to have a custom open function on the file manager.

like:

clapper --folder-of-file-to-playlist /path/to/video.mkv

In this way, the file would open and the folder /path/to/ of this file would automatically be added to the playlist.

If you could only add this option --folder-of-file-to-playlist that would be perfect.

Thank you for your great work!

Theluga avatar Nov 08 '24 21:11 Theluga

clapper --folder-of-file-to-playlist /path/to/video.mkv In this way, the file would open and the folder /path/to/ of this file would automatically be added to the playlist.

We cannot do that, cause other files would not go through the portal. What we can do is:

clapper /path/to/folder

And this would add all files from that folder to the queue and start playing them from the first one.

Rafostar avatar Nov 08 '24 21:11 Rafostar

yes, it would also be very good! Now it only says unplayable content.

specially if:

clapper /path/to/folder

would add the folder to playlist without changing the playing file.

Clapper already open and playing some file.

running clapper /path/to/folder would only add the playlist on the running clapper instance playing the said file without changing the video being played.

It would work great!!!

Thank you for your patience and willingness to help!

Theluga avatar Nov 08 '24 22:11 Theluga

would add the folder to playlist without changing the playing file.

For this --enqueue option exists.

clapper /path/to/folder

This is an equivalent to "Open" action, meaning the files are added to the queue and if something else played it will change to the first of newly opened/added files.

On the other hand:

clapper --enqueue /path/to/folder

This will only add new/more items to the playback queue (without changing what is currently playing).

Rafostar avatar Nov 09 '24 11:11 Rafostar

I know it's a little off-topic, I got the clapper to open a file and automatically add all other files on the folder to play in the order of their names. It was adapting some VLC script with the same purpose:

https://github.com/Theluga/VLC-Play-Next-File-NVIDIA-dGPU/blob/master/clapper_next.sh

Then, I just need to create a custom .desktop file directing to this script to open the files. It works like a charm.

And this was basically what I really wanted. So I am just posting here if someone is looking for a way to do that.

Thank you for everything!

Theluga avatar Dec 22 '24 21:12 Theluga