PlayQueue QML Type
Provides a play queue for the MediaPlayer. More...
Import Statement: | import QtIvi.Media 1.0 |
Instantiates: | QIviPlayQueue |
Properties
- chunkSize : int
- count : int
- currentIndex : int
- fetchMoreThreshold : int
- loadingType : enumeration
Signals
Methods
- object get(i)
- insert(int index, PlayableItem item)
- move(int cur_index, int new_index)
- remove(int index)
Detailed Description
The PlayQueue is a model which is used by the MediaPlayer to control the play order of PlayableItems.
It provides mechanisms for adding new items and managing the existing ones by removing or moving them around.
The PlayQueue can't be instantiated by its own and can only be retrieved through the MediaPlayer.
Property Documentation
chunkSize : int |
Holds the number of rows which are requested from the backend interface.
This property can be used to fine tune the loading performance.
Bigger chunks means less calls to the backend and to a potential IPC underneath, but more data to be transferred and probably longer waiting time until the request was finished.
count : int |
Holds the current number of rows in this model.
currentIndex : int |
Holds the index of the currently active track.
Use the get() method to retrieve more information about the active track.
fetchMoreThreshold : int |
Holds the row delta to the end before the next chunk is loaded
This property can be used to fine tune the loading performance. When the threshold is reached the next chunk of rows are requested from the backend. How many rows are fetched can be defined by using the chunkSize property.
The threshold defines the number of rows before the cached rows ends.
Note: This property is only used when loadingType is set to FetchMore.
loadingType : enumeration |
Holds the currently used loading type used for loading the data.
Note: When changing this property the content will be reset.
Signal Documentation
This signal is emitted whenever the fetchMoreThreshold is reached and new data is requested from the backend.
Note: The corresponding handler is onFetchMoreThresholdReached
.
Method Documentation
insert(int index, PlayableItem item) |
Insert the item at the position index.
If the backend doesn't accept the provided item, this operation will end in a no op.
Moves the item at position cur_index to the new position new_index the play queue.
remove(int index) |
Removes the item at position index from the play queue.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.