Commit graph

9 commits

Author SHA1 Message Date
Ivailo Monev
fd5e26de00 okular: load the movie anew when repeating it
also the loaded state does not have to be tracked and a new attempt to load
it (in case of temporary resource failure) may succeed (failures are
neither tracked nor reported by the video widget class)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 03:23:38 +02:00
Ivailo Monev
f61bb0f7f3 okular: switch from poster to player when a mouse button is pressed and the current page is poster
this is just pre-face to (maybe) use poster image instead of custom one for
videos in the epub generator

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 06:41:33 +02:00
Ivailo Monev
5b77797be4 okular: rewrite snapshot taker to use KIO::PreviewJob
KIO::PreviewJob was made for this kind of things, it also does not involve
loading the file (which may play a sound even if the widget is not
visible), seeking, pausing and then grabbing a QWidget snapshot. the only
requirement is for ffmpegthumbs thumbnailer to be installed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 05:48:24 +02:00
Ivailo Monev
e3912937d8 generic: compiler warnings fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-06 15:25:57 +03:00
Ivailo Monev
c28af1143c okular: partially deal with TODO
reference:
89a76dc6ca

TODO: do not include the controls in the snapshot

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-10 21:35:51 +02:00
Ivailo Monev
2802b4bbbf generic: adjust to media classes changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-26 09:57:27 +02:00
Ivailo Monev
89a76dc6ca okular: replace Phonon with custom media classes
some form elements were not working before either so the only
regression here is the seek slider, if KMediaWidget is used the
whole custom controls code can be trown out I suppose but I'm not
sure if the controls should be embeded along with the video or
they be can/should be separate

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-31 06:40:57 +00:00
Ivailo Monev
37daac4a8f okular: use new Phonon API 2015-02-27 10:59:13 +00:00
Ivailo Monev
bf2d9dcd05 import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00