mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Added Direct Play and websocket improvements
* [backend]: Websocket now automatically tries to reconnect if connection was lost, up to 3 times. * [backend]: Move more playback and resume logic to the backend, to avoid having it in multiple places within the QML. Regression: pausing playback sometimes halts the video player for an unknown reason. * [playback]: Sailfin will try to play without the server transcoding, if possible. * [ui]: added a debug page in the settings
This commit is contained in:
parent
a244c27b1a
commit
7e77abc173
13 changed files with 204 additions and 45 deletions
|
@ -39,6 +39,55 @@ Page {
|
|||
title: qsTr("Debug information")
|
||||
}
|
||||
|
||||
TextSwitch {
|
||||
text: qsTr("Show debug information")
|
||||
checked: appWindow.showDebugInfo
|
||||
onCheckedChanged: appWindow.showDebugInfo = checked
|
||||
}
|
||||
|
||||
SectionHeader {
|
||||
text: qsTr("Websocket")
|
||||
}
|
||||
|
||||
DetailItem {
|
||||
label: qsTr("Connection state")
|
||||
value: {
|
||||
var stateText
|
||||
switch( ApiClient.websocket.state) {
|
||||
case 0:
|
||||
//- Socket state
|
||||
stateText = qsTr("Unconnected");
|
||||
break;
|
||||
case 1:
|
||||
//- Socket state
|
||||
stateText = "Looking up host";
|
||||
break;
|
||||
case 2:
|
||||
//- Socket state
|
||||
stateText = "Connecting";
|
||||
break;
|
||||
case 3:
|
||||
//- Socket state
|
||||
stateText = "Connected";
|
||||
break;
|
||||
case 4:
|
||||
//- Socket state
|
||||
stateText = "Bound";
|
||||
break;
|
||||
case 5:
|
||||
//- Socket state
|
||||
stateText = "Closing";
|
||||
break;
|
||||
case 6:
|
||||
//- Socket state
|
||||
stateText = "Listening";
|
||||
break;
|
||||
}
|
||||
//- Socket state: "state no (state description)"
|
||||
qsTr("%1 (%2)").arg(ApiClient.websocket.state).arg(stateText)
|
||||
}
|
||||
}
|
||||
|
||||
SectionHeader {
|
||||
text: qsTr("Device profile")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue