Maestro Panel - Hello World ! - #1
Open
alex-irving-maestro wants to merge 7 commits into
Open
Conversation
| m.componentLibrary = createObject("rosgNode", "ComponentLibrary") | ||
| m.componentLibrary.uri = "https://roku-sdk.us-central1-master.gcp.maestro.io/4.1.11/maestrokit.zip" | ||
| m.componentLibrary.observeField("loadStatus", "onLibraryLoadStatusChanged") | ||
| end sub |
Collaborator
Author
There was a problem hiding this comment.
Instantiate the SDK on event/video entry.
| m.top.appendChild(m.lib) | ||
| finishSetup() | ||
| end if | ||
| end function |
Collaborator
Author
There was a problem hiding this comment.
When the library successfully loads add it as a child to your video scene
| } | ||
| 'set focus to the buttons or your custom UI | ||
| m.settingConfig.setFocus(true) | ||
| end sub |
Collaborator
Author
There was a problem hiding this comment.
Configure the SDK with your specific site and page ID's
View the Documentation for other configurable parameters
| else if action = "HidePanel" | ||
| m.lib.showPanel = false | ||
| maxVideo() | ||
| end if |
Collaborator
Author
There was a problem hiding this comment.
Add handlers for your custom user interface to show and hide the panel
| m.lib.config ={ | ||
| "siteID": "695c05610f99e7584a1b7407", '<-- TODO replace with your siteID. | ||
| "pageId": "695c05610f99e7584a1b743e", '<-- TODO replace with a pageID on your site, later to be dynamic based on the video you select | ||
| "useProdEnv": false |
Collaborator
Author
There was a problem hiding this comment.
This siteId and pageId combination is configured to deliver the hello world panel.
Once completed and ready to move forward with custom panel delivery these ID's will be replaced with ones specific to your site and it's pages.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.