Commit graph

24 commits

Author SHA1 Message Date
Ivailo Monev
30c6025c61 kutils: the static cast was needed, oops
neither the compiler would complain (QVariant can hold custom types via
runtime registration) nor runtime warning about invalid QVariant was issued
for this (because it was casted to something, not sure what but it was the
wrong type)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-04 01:07:37 +00:00
Ivailo Monev
ecf6f851af kutils: use method that works on x86_64 for widget ID setup in KMediaPlayer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-03 22:15:57 +00:00
Ivailo Monev
2d823ecdd8 generic: make MPV recommended not required
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-14 10:07:58 +00:00
Ivailo Monev
cb09d66b2f kutils: review media classes documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-22 21:12:03 +00:00
Ivailo Monev
a0041f5d78 kutils: workaround issue wtih async access to the handle
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 13:57:31 +00:00
Ivailo Monev
4cc9dd4da6 kutils: use partitially-seekable property as fallback for seekable signal
this allows to enable seek sliders on streams not only when the stream has
been fully loaded

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 09:27:29 +00:00
Ivailo Monev
c26366971f kutils: fix compiler warning
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 08:23:38 +00:00
Ivailo Monev
c9fb1c8f6b generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-08 01:17:17 +00:00
Ivailo Monev
d6103c84ce generic: get rid of KZoneAllocator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-06 09:15:26 +00:00
Ivailo Monev
4f06efd99d kutils: constify KMediaPlayer::isMimeSupported()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-04 01:43:24 +00:00
Ivailo Monev
45a6db5fac kutils: implement overload for KAbstractPlayer::load()
it is needed in Okular and in KNotify I think so with the overload method
the possibility for MPV API break to affect those application will be
reduced, KAbstractPlayer is ment to be abstraction after all

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-31 17:32:20 +00:00
Ivailo Monev
fbf35f4caa kutils: improve media classes protocols check
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 23:59:21 +00:00
Ivailo Monev
483854d35a kutils: add bits to control audio output of media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-27 23:23:07 +00:00
Ivailo Monev
f02ad6cc2a kutils: make the finished() emision more reliable
without extra path property check it can be emited twice (or even more?)
because MPV will try to use SSL and fallback to non-secure connection when
that is not possible and emit the event after load which, aside from being
innacurate for our use cases, causes unnecessary widgets actions.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-27 18:52:37 +00:00
Ivailo Monev
314fa967a4 kutils: report media player command errors
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-27 17:34:52 +00:00
Ivailo Monev
7506a2cef6 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-27 02:35:23 +00:00
Ivailo Monev
8a6bb39279 kutils: revert lazy initialization changes
it has too many side effects that will complicate things more then it is
worth it to save a few MB of RAM per-application until load

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 21:29:11 +00:00
Ivailo Monev
33b9f1274e kutils: optimize media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 18:06:51 +00:00
Ivailo Monev
135ed6f12f kutils: fix KAbstractPlayer stop command
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 06:31:51 +00:00
Ivailo Monev
05dd897b78 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 03:17:36 +00:00
Ivailo Monev
38f880f312 kutils: make multimedia context creation more tolerant
returing from the constructor prematurely is not a good idea because the
settings pointer may be left uninitialized, also issue a general warning
if mpv_create() failed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-24 00:06:16 +00:00
Ivailo Monev
a26021c35c kutils: rework some parts of the media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-23 04:16:54 +00:00
Ivailo Monev
977adde9a6 kutils: set MPV debug level to info
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 23:16:24 +00:00
Ivailo Monev
d398932909 generic: drop Phonon in favour of MPV and custom player classes
kcompactdisc was remove because there is no use for it in the
current set of applications supported, if it is needed it will
need some work to make it use KMediaPlayer or whatever.

the Plasma VideoWidget class was dropped because custom widgets
(at some point) will be dropped unless absolutely needed and
hopefully getting rid of the heavy-weight QML stuff.

the new KMediaPlayer and KMediaWidgets classes are experimental
but they have been tested and they work as they should.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 02:43:02 +00:00