Play API prototype (#8)
* Play API prototype * Web app * Drag and drop support * Handle different urls * Fix redirect * Increase max connections * changelog * Limit timeout * Use fetch * Redirects * Formatting
This commit is contained in:
1 parent
192eec9519
commit
651bb54dee
15 files changed
+180
-39
No files matched your search
@@ -28,6 +28,7 @@ function InitWebServer()
|
||||
m.serverTask = createObject("roSGNode", "WebServerTask")
|
||||
m.serverTask.id = "WebServerTask"
|
||||
m.serverTask.ObserveField("login", "OnWebServerLogin")
|
||||
m.serverTask.ObserveField("command", "OnWebServerCommand")
|
||||
m.serverTask.control = "RUN"
|
||||
end function
|
||||
|
||||
@@ -85,6 +86,12 @@ function OnWebServerLogin()
|
||||
m.settingsScreen.visible = false
|
||||
end function
|
||||
|
||||
function OnWebServerCommand()
|
||||
if m.serverTask.command.StartsWith("play:")
|
||||
m.homeGridScreen.playvideo = m.serverTask.command.Mid(5)
|
||||
end if
|
||||
end function
|
||||
|
||||
function GetIndexOfChild(parent as object, childId as string) as integer
|
||||
count = parent.getChildCount()
|
||||
for i = 0 to count - 1
|
||||
|
||||
Reference in new issue
Block a user