Files
iDescriptor/src/ui/tools/Airplay.qml
T
uncor3 a51958b7a0 add device context management and use qml6glsink for airplay
- Introduced a new module `device_ctx` to manage device-related services and state.
- Replaced direct access to `APP_DEVICE_STATE` with functions from `device_ctx` for better encapsulation.
- Added constants for recent and favorites album queries in `constants.rs`.
- Updated SQL queries in `query_sqlite.rs` to use constants from `constants.rs`.
- Removed the `hause_arrest.rs` file and integrated its functionality into the new structure.
- Refactored `ServiceFactory` to create AFC clients using the new device context.
- Improved error handling and logging in various modules.
- Airplay now uses qml6glsink.
- Cleaned up unused imports and commented-out code across multiple files.
2026-05-12 21:59:47 +00:00

58 lines
1.2 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs
import QtQuick.Window
import iDescriptor 1.0
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0
Window {
id: win
width: 900
height: 600
visible: true
Component.onCompleted: {
Qt.callLater(() => {
AirplayImp.init(video)
})
}
GstGLQt6VideoItem {
id: video
anchors.fill: parent
objectName: "videoItem"
z: 99
}
Rectangle {
color: Qt.rgba(1, 1, 1, 0.7)
border.width: 1
border.color: "white"
anchors.bottom: video.bottom
anchors.bottomMargin: 15
anchors.horizontalCenter: parent.horizontalCenter
width : parent.width - 30
height: parent.height - 30
radius: 8
MouseArea {
id: mousearea
anchors.fill: parent
hoverEnabled: true
onEntered: {
parent.opacity = 1.0
hidetimer.start()
}
}
Timer {
id: hidetimer
interval: 5000
onTriggered: {
parent.opacity = 0.0
stop()
}
}
}
}