Skip to main content

Quick Start

Lura SDK is a powerful software development kit designed for developers who are building applications for the Roku platform. With Lura SDK, you can easily create high-quality, feature-rich Roku channels that deliver immersive entertainment experiences to users worldwide.

Lura SDK offers a range of advanced features that enable you to create rich, immersive Roku channels. From support for video playback and live streaming to advanced analytics and advertising integration, Lura SDK has everything you need to build world-class Roku channels.

MainScene.xml
<?xml version="1.0" encoding="utf-8"?>
<component name="MainScene" extends="Scene">
<children>
<ComponentLibrary id="lib" uri="https://w4.mp.lura.live/p/[YOUR_PLAYER_ID]/LuraPlayer.pkg" />
</children>
<script type="text/brightscript" uri="MainScene.brs" />
</component>
MainScene.brs
sub init()
m.lib = m.top.findNode("lib")
m.lib.observeField("loadStatus", "onLoadStatusChanged")
end sub

sub onLoadStatusChanged()
if m.lib.loadStatus <> "ready"
return
end if
m.player = CreateObject("roSGNode", "Lura:LuraPlayer")
m.top.appendChild(m.player)
m.player.callFunc("setConfig", {
"content": {
"media": [
{
"url": "https://example.com/master.m3u8",
"type": "application/x-mpegURL",
"licenseUrl": "..."
}
]
}
})
m.player.callFunc("play")
m.player.setFocus(true)
end sub