Skip to content

Maestro Panel - Hello World ! - #1

Open
alex-irving-maestro wants to merge 7 commits into
mainfrom
Hello-World
Open

Maestro Panel - Hello World !#1
alex-irving-maestro wants to merge 7 commits into
mainfrom
Hello-World

Conversation

@alex-irving-maestro

Copy link
Copy Markdown
Collaborator

No description provided.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instantiate the SDK on event/video entry.

m.top.appendChild(m.lib)
finishSetup()
end if
end function

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants