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
@@ -5,6 +5,7 @@ function Init()
|
||||
m.rowList = m.top.FindNode("rowList")
|
||||
m.top.ObserveField("rowItemSelected", "OnHomeGridScreenVideoSelected")
|
||||
m.top.ObserveField("focus", "OnFocusChange")
|
||||
m.top.ObserveField("playvideo", "OnPlayVideoCommand")
|
||||
|
||||
m.top.focus = true
|
||||
|
||||
@@ -132,6 +133,12 @@ function CloseVideo()
|
||||
end if
|
||||
end function
|
||||
|
||||
function OnPlayVideoCommand()
|
||||
videoId = m.top.playvideo
|
||||
CloseVideo()
|
||||
ShowVideoScreenFull(videoId)
|
||||
end function
|
||||
|
||||
function OnHomeGridScreenVideoFocused(event as object) as void
|
||||
' Skip loading the video after first load
|
||||
if m.firstFocus = invalid
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<field id="jumpToRowItem" type="intarray" alias="RowList.jumpToRowItem" />
|
||||
<field id="escape" type="string" alwaysNotify="true" />
|
||||
<field id="focus" type="boolean" alwaysNotify="true" />
|
||||
<field id="playvideo" type="string" alwaysNotify="true" />
|
||||
</interface>
|
||||
<children>
|
||||
<RowList
|
||||
|
||||
Reference in new issue
Block a user