-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from neilsb/initial-live-tv
Initial Live TV Support
- Loading branch information
Showing
18 changed files
with
525 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
sub setFields() | ||
json = m.top.json | ||
|
||
m.top.id = json.id | ||
m.top.title = json.name | ||
m.top.live = true | ||
end sub | ||
|
||
sub setPoster() | ||
if m.top.image <> invalid | ||
m.top.posterURL = m.top.image.url | ||
else | ||
m.top.posterURL = "" | ||
end if | ||
end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<component name="ChannelData" extends="ContentNode"> | ||
<interface> | ||
<field id="id" type="string" /> | ||
<field id="title" type="string" /> | ||
<field id="image" type="node" onChange="setPoster" /> | ||
<field id="posterURL" type="string" /> | ||
<field id="json" type="associativearray" onChange="setFields" /> | ||
</interface> | ||
<script type="text/brightscript" uri="ChannelData.brs" /> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sub init() | ||
|
||
end sub | ||
|
||
function onKeyEvent(key as string, press as boolean) as boolean | ||
if not press then return false | ||
|
||
if key = "down" | ||
m.top.lastFocus = m.top.focusedChild | ||
m.top.findNode("paginator").setFocus(true) | ||
end if | ||
|
||
return false | ||
end function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<component name="Channels" extends="JFGroup"> | ||
<children> | ||
<ItemGrid id="picker" visible="true" itemsPerRow="6" /> | ||
<OptionsSlider id="options" /> | ||
<Rectangle translation="[0,981]" width="1920" height="100" color="#101010" /> | ||
</children> | ||
<interface> | ||
<field id="channelSelected" alias="picker.itemSelected" /> | ||
<field id="objects" alias="picker.objects" /> | ||
<field id="pageNumber" type="integer" /> | ||
</interface> | ||
<script type="text/brightscript" uri="Channels.brs" /> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.