Commit graph

12 commits

Author SHA1 Message Date
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
dd06909ffb kutils: when the parent widget is KMainWindow use setCaption() to set title
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 06:32:39 +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
73d50c52e9 kutils: for some media classes bugs
one bug was that replay was not possible after sucessfull finish, another
one was that controls remained hidden after finish because path is empty
and finally the play/pause button was not update on finish because MPV does
not emit the event on finish (noted in the API docs)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 04:43:58 +00:00
Ivailo Monev
3d92b0104f generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 03:23:43 +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
003bfe1da1 kutils: add more paranoia checks to KMediaWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 23:16:57 +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