Upload files to "kronic/cast"
This commit is contained in:
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user