Create icon files, begin writing playback system

This commit is contained in:
Dark Steveneq
2025-10-12 18:09:34 +02:00
parent 5811933326
commit b48a29935d
8 changed files with 85 additions and 21 deletions

30
Player.qml Normal file
View File

@@ -0,0 +1,30 @@
import QtMultimedia 6.8
pragma Singleton
MediaPlayer {
source: ""
function startPlaying(url) {
if (player.playing) {
return;
}
console.log("Starting playback from " + url);
player.source = url;
player.play();
}
function stopPlaying() {
console.log("Stopping playback...");
player.source = "";
player.stop();
}
audioOutput: AudioOutput {
volume: 0.4
}
onErrorOccurred: function(error, errorString) {
player.stopPlaying();
}
}