cloudcmd icon indicating copy to clipboard operation
cloudcmd copied to clipboard

feature request: gallery-like behavior for video folder?

Open knguyen0105 opened this issue 6 years ago • 2 comments

Currently, if a folder has multiple videos I have to close a video before playing the next one. This takes 3 keystrokes: ESC, Up/Down, Enter

It would be nice if I can press '->' or '<-' to play / view the next/previous videos (or multimedia files). Similar to how cloudcmd handles images folder right now. This only takes one keystroke: Left / Right

Thanks.

knguyen0105 avatar Oct 08 '19 01:10 knguyen0105

@coderaiser : could you give me a few pointers where to start? I want to give this a try myself. Thanks.

knguyen0105 avatar Oct 16 '19 01:10 knguyen0105

@knguyen0105 I think the best way to do this, is extending @cloudcmd/modal to support video as well. @cloudcmd/modal is a simplified fancybox drop-in replacement. It used to show modals in Cloud Commander with images, editors, configuration console and terminal.

This is how it works right now, it file client/modules/view.js there is a switch block with an image/media check.

viewMedia uses the same modal as view, but embeds template there.

To add video support to modal.js should be added isVideo check and would be great to add parse-media in similar way as parse-images.

The only one open question is: now left and right keys works as rewind. What do you think the best way of handling rewind? Is it useful feature?

I created an issue https://github.com/cloudcmd/modal/issues/1. if you get into trouble ask me any questions and I'll help.

coderaiser avatar Oct 16 '19 09:10 coderaiser