Created attachment 104938 [details] Dolphin autoplay - partial implementation As I've seen this been requested several times around the internet and I saw it on Ubuntu 10.04 LTS Nautilus & on recent Caja file manager versions (MATE desktop), I'd really like to implement the feature as an alternative option in Dolphin. The feature is handy especially for previewing small audio files. I've done partial implementation but it's not perfect. There are several major (but quite trivial) issues still to be resolved: 1) Stop playback once the Dolphin window (where the audio preview is being played) is inactivated and window focus lost 2) Get system default media player (Amarok, VLC, etc.) and stop preview playback if the specific track (or any track) is opened in the player 3) If the default media player is currently playing any music track (or video file), do not play a preview since it could distract user 4) Apply autoplay only for audio mimetypes (as it does in Nautilus/Caja) My partial implementation as an attachment, missing features described above. Please, feel free to edit the patch file if needed.
KDE Forums (Brainstorm) - Dolphin Video audio play hovering the file: https://forum.kde.org/viewtopic.php?f=83&t=92269
Yep, I'm aware of that topic. However, the latest post is over 3 years ago so I think it's time to refresh this topic. The last post which explains how to implement the feature has several problems: - It's for KDE4 Dolphin (okay, very trivial to re-implement the code in KDE5 Dolphin) - It doesn't store (save) settings, so the autoplay checkbox must be re-enabled every time Dolphin is opened - It does autoplay for videos as well. Would this be intended/good or not, don't know. I may prefer the autoplay should only apply for audio files. - It doesn't have any delay for autoplay (meaning that if you hover cursor above a media file, the autoplay starts immediately. I prefer ~1 sec delay for autoplay)
Thanks for the patch (even if incomplete)! Please host it on Phabricator so it doesn't get lost. https://phabricator.kde.org/ Add "KDE Applications" and "Dolphin" as review groups.
Hi Nate! As you requested: https://phabricator.kde.org/D7539 I hope this helps!
*** Bug 207729 has been marked as a duplicate of this bug. ***
*** Bug 205422 has been marked as a duplicate of this bug. ***
*** Bug 233455 has been marked as a duplicate of this bug. ***
*** Bug 263981 has been marked as a duplicate of this bug. ***
*** Bug 281765 has been marked as a duplicate of this bug. ***
*** Bug 301133 has been marked as a duplicate of this bug. ***
Updated the status of this ticket to reflect the current situation. As already mentioned in D7539, it'd be better from a security perspective if we could sandbox this in Phonon, but this is a rather big change and will probably require quite a lot of work.
I have a new patch proposal : https://phabricator.kde.org/D19782
Git commit e6c1b97d67f6b6c6d4ad935db14241b041b3fca4 by Méven Car. Committed on 23/06/2019 at 14:38. Pushed by meven into branch 'master'. Allow dolphin to auto-play previewed media file, click on preview to play/pause videos or audio Summary: It is based on D19844. I did my best to avoid glitches hence the amount of code touched. Retry after @pekkah D7539 Moved the setting to the information panel context menu, no more timer Settings screenshot : {F6700220} This would mach the same feature in the open/save dialog (although not equivalent) {F6696456} FIXED-IN: 19.08.0 GUI: New information panel context menu option Test Plan: Without auto play - in dolphin with the information panel opened, and the auto media play feature is disabled (right on the information panel) - hover over media files - the behavior is the same as before the patch With auto play - in dolphin with the information panel opened, and the auto media play feature is enabled - hover over media files - media is played automatically - hover over another media file, the new media is previewed Use audio or video file as media. Reviewers: #dolphin, elvisangelaccio, ngraham Reviewed By: #dolphin, elvisangelaccio, ngraham Subscribers: ngraham, broulik, kfm-devel, pekkah Tags: #dolphin Differential Revision: https://phabricator.kde.org/D19782 M +4 -0 src/panels/information/dolphin_informationpanelsettings.kcfg M +8 -0 src/panels/information/informationpanel.cpp M +27 -6 src/panels/information/informationpanelcontent.cpp M +7 -0 src/panels/information/informationpanelcontent.h M +35 -21 src/panels/information/phononwidget.cpp M +16 -4 src/panels/information/phononwidget.h https://commits.kde.org/dolphin/e6c1b97d67f6b6c6d4ad935db14241b041b3fca4