Emitted when the state of the MediaObject has changed. In case you're not interested in the old state you can also connect to a slot that only has one State argument.
Parameters
newstate
The state the Player is in now.
oldstate
The state the Player was in before.
void tick(qint64 time)
This signal gets emitted every tickInterval milliseconds.
Requests the playback to be seeked to the given time.
The backend does not have to finish seeking while in this function (i.e. the backend does not need to block the thread until the seek is finished; even worse it might lead to deadlocks when using a ByteStream which gets its data from the thread this function would block).
As soon as the seek is done the currentTime() function and the tick() signal will report it.
Parameters
milliseconds
The time where playback should seek to in milliseconds.
Returns the total time of the media in milliseconds.
If the total time is not know return -1. Do not block until it is known, instead emit the totalTimeChanged signal as soon as the total time is known or changes.
When this function is called the MediaObject is expected to stop all current activity and start loading the new source (i.e. go into LoadingState).
It is expected that the backend now starts preloading the media data, filling the audio and video buffers and making all media meta data available. It will also trigger the totalTimeChanged signal.
If the backend does not know how to handle the source it needs to change state to Phonon::ErrorState. Don't bother about handling KIO URLs. It is enough to handle AbstractMediaStream sources correctly.
When a next source is set playback should continue with the new source. In that case finished and prefinishMarkReached are not emitted.
Parameters
source
The source to transition to (crossfade/gapless/gap). If source is an invalid MediaSource object then the queue is empty and the playback should stop normally.