forked from ghostfox/qyouradio
Improve title pan animation, add slideout animation
This commit is contained in:
@@ -35,7 +35,7 @@ Item {
|
||||
|
||||
property alias playing: player.playing
|
||||
property alias volume: output.volume
|
||||
readonly property var loading: player.mediaStatus == Qt.LoadingMedia
|
||||
property var loading: player.mediaStatus == Qt.LoadingMedia
|
||||
|
||||
property var currentIndex: null
|
||||
property var currentStream: null
|
||||
@@ -71,7 +71,7 @@ Item {
|
||||
|
||||
audioOutput: AudioOutput {
|
||||
id: output
|
||||
volume: 0.4
|
||||
volume: 0.3
|
||||
}
|
||||
|
||||
onErrorOccurred: function(error, errorString) {
|
||||
@@ -99,11 +99,10 @@ Item {
|
||||
console.warn("Unknown slug encountered in metadata: " + station.server_name);
|
||||
return
|
||||
}
|
||||
parent.streams[index].title = station.title;
|
||||
parent.streams[index].title = station.title.replace(/\[[a-zA-Z0-9]{11}\]/, "");
|
||||
parent.streams[index].listeners = station.listeners;
|
||||
if (index == parent.currentIndex) {
|
||||
parent.currentStream.title = station.title;
|
||||
parent.currentStream.listeners = station.listeners;
|
||||
parent.currentStream = parent.streams[index];
|
||||
}
|
||||
});
|
||||
// } catch {
|
||||
|
||||
Reference in New Issue
Block a user