Bug 457963 - Preview panel cannot play videos anymore.
Summary: Preview panel cannot play videos anymore.
Status: CONFIRMED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 15:08 UTC by ruqini
Modified: 2025-02-24 16:49 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Rare glitch. Black area is censorship added by me. (24.16 KB, image/png)
2022-10-29 17:45 UTC, ruqini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ruqini 2022-08-16 15:08:33 UTC
STEPS TO REPRODUCE
1. GTK_USE_PORTAL=1 firefox, upload file, activate preview panel
2. select some video file, e.g. a webm

OBSERVED RESULT
There is no timeline and play/pause button in the preview panel, it only shows a still image.

EXPECTED RESULT
Timeline and play/pause button and the "play automatically" checkbox.

SOFTWARE/OS VERSIONS
XUbuntu 22.04.01 LTE

Note it did work in the previous version, but was prone to crashes.
Comment 1 Nate Graham 2022-08-17 19:44:32 UTC
Can reproduce.
Comment 2 ruqini 2022-08-18 13:26:10 UTC
Note: I don't know how close these projects are and whether this is useful information, but it also works as expected in Dolphin.
Comment 3 Harald Sitter 2022-08-22 09:09:51 UTC
Cannot reproduce. Which KIO versions are involved here?
Comment 4 Harald Sitter 2022-08-22 09:34:11 UTC
As it turns out you may be missing phonon when building kio-extras? Without it kfileaudiopreview doesn't get built
Comment 5 Nate Graham 2022-08-22 17:15:45 UTC
That was what it was, yeah. Good thinking.

ruqini, do you have the kio-extras package installed? If not, does it start working if you install it?
Comment 6 Bug Janitor Service 2022-09-06 04:36:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 ruqini 2022-09-13 14:24:13 UTC
(In reply to Nate Graham from comment #5)
> That was what it was, yeah. Good thinking.
> 
> ruqini, do you have the kio-extras package installed? If not, does it start
> working if you install it?

Hello,

sorry for the late reply. "kio-extras" is installed, version "4:21.12.3-0ubuntu1".


(In reply to Harald Sitter from comment #4)
> As it turns out you may be missing phonon when building kio-extras? Without
> it kfileaudiopreview doesn't get built

Is this a build configure switch? I would then assume this is not actually a KDE bug, but on the maintainer of the Ubuntu package. If he/she is not lurking here, feel free to close the ticket.

Best regards.
Comment 8 ruqini 2022-10-25 07:38:55 UTC
Problem persists with Ubuntu 22.10 (kio-extras 4:22.08.2-0ubuntu1).
Comment 9 ruqini 2022-10-29 17:45:28 UTC
Created attachment 153303 [details]
Rare glitch. Black area is censorship added by me.

In rare cases there is a glitch, where the time bar and controls are actually shown (twice), but no video. Also appears for png images, even un-animated ones. Cannot reproduce on purpose, just happens sometimes.

This may not be useful information, except that it rules out, that the package maintainer forgot to switch the build option on. It's just bugged.
Comment 10 smow 2022-10-30 10:31:56 UTC
(In reply to ruqini from comment #0)
> OBSERVED RESULT
> There is no timeline and play/pause button in the preview panel, it only
> shows a still image.
I am able to reproduce this on Plasma 5.26.2 (KF 5.99.0, kio-extras 22.08.2). All mp4 files display first frame of the video, without buttons and timeline.

(In reply to ruqini from comment #9)
> Also appears for png images, even
> un-animated ones. Cannot reproduce on purpose, just happens sometimes.
Though it happens every time I try to preview files with extensions like png, gif, webm and mkv. On the other hand, extensions like kra, jpg, xcf, svg and files containing plain text display just fine.
Comment 11 John 2025-02-24 16:49:36 UTC
I can confirm this on Debian 13 (Trixie) - unstable repository, with:

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.7.2
Kernel Version: 6.12.16-amd64 (64-bit)
Mesa  Version: 25.0.0-1
Graphics Platform: Wayland


HARDWARE SPECIFICATIONS
Hardware: Laptop Dell Inspiron 5770 (17" 1080p@60Hz screen)
CPU: Intel® Core™ i5-8250U CPU @ 1.60GHz
GPU 1: Mesa Intel® UHD Graphics 620 (main, Vulkan capable)
GPU 2: AMD Radeon R5 M465 Series
RAM: 8 GiB (7.7 GiB usable)

I tested it with 'Open File" of Kate as the GTK_USE_PORTAL=1 environment variable  might be broken, it's ignored for me:
https://bugs.kde.org/show_bug.cgi?id=500240

For some files just a frame is shown, from somewhere in the video.
For others just the cover.jpg or the cover_land.jpg is shown, which might be related to these 2 other problems, since I've tested only with existing .mkv files:
https://bugs.kde.org/show_bug.cgi?id=500113
https://bugs.kde.org/show_bug.cgi?id=500117

Anyway, I didn't even know that the preview panel could play videos and from my test, if it did, it seems to still not be able to.