Upload files to "kronic/cast"

This commit is contained in:
2026-11-25 20:28:20 -06:00
parent fd35f6de4a
commit 402a43957c
5 changed files with 1052 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
from __future__ import annotations
NOT_CONNECTED = """<service xmlns="urn:dial-multiscreen-org:schemas:dial">
<name>YouTube</name>
<options allowStop="true"/>
<state>stopped</state>
</service>"""
CONNECTED = """<service xmlns="urn:dial-multiscreen-org:schemas:dial">
<name>YouTube</name>
<options allowStop="true"/>
<servicedata xmlns="urn:chrome.google.com:cast">
<connectionSvcURL></connectionSvcURL>
<protocols>
<protocol>ramp</protocol>
</protocols>
</servicedata>
<state>running</state>
<activity-status xmlns="urn:chrome.google.com:cast">
<description>YouTube Receiver</description>
</activity-status>
<link rel="run" href="run"/>
</service>"""
def announcement(screen_uid, screen_name, screen_app):
# Preserve TubeCast's known-compatible lounge values.
return {
"device": "LOUNGE_SCREEN",
"id": screen_uid,
"name": screen_name,
"app": screen_app,
"theme": "cl",
"capabilities": "",
"mdx-version": "2",
"loungeIdToken": "",
"VER": "8",
"v": "2",
"RID": "1337",
"AID": "42",
"zx": "xxxxxxxxxxxx",
"t": "1",
}