Commit graph

16 commits

Author SHA1 Message Date
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
c9fb1c8f6b generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-08 01:17:17 +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
96983d211e kutils: add prototype KAudioWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-31 05:03:57 +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
00a309ee39 kutils: fix bootstrap build of kemoticons
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 04:10:43 +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
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
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
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
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