Roku SDK: legacy vs SceneGraph

How video is played, legacy vs SceneGraph, or SDK1 vs SDK2
Screen creation:
SDK1: CreateObject(“roScreen”, true)
SDK2: CreateObject(“roSGScreen”) followed by CreateScene
Video object creation:
SDK1: CreateObject(“roVideoPlayer”)
SDK2: CreateObject(“roSGNode”, “Video”) followed by reparent to scene
Start video playing:
SDK1: video.Play()
SDK2: video.control = “play”
Event loop:
Nothing more than an empty dead loop, like while(true) end while, just to prevent main from exiting

Source code:

Next Post
Comments are closed.
%d bloggers like this: