Sha256: 9350e25a1fe7a632aa7dda43d3ca7ad6070c9c6d2cc6ea10f08976fab7722f84

Contents?: true

Size: 885 Bytes

Versions: 19

Compression:

Stored size: 885 Bytes

Contents

'##COPYRIGHT HEADER##

sub main(externalParams)

  port = createObject("roMessagePort")
  screen = createObject("roSGScreen")
  screen.setMessagePort(port)

  m.global = screen.getGlobalNode()
  m.global.observeField("redData", port)

  m.input = createObject("roInput")
  m.input.setMessagePort(port)

  device = createObject("roDeviceInfo")
  device.setMessagePort(port)
  device.enableLinkStatusEvent(true)


  scene = screen.createScene("Main")
  screen.show()

  scene.observeField("exitApplication", port)
  scene.observeField("sessionLength", port)

  while(true)
    msg = wait(0, port)
    msgType = type(msg)

    if invalid <> msg
      if "roInputEvent" = msgType
        info = msg.getInfo()
        if invalid <> info
          mediaType = externalParams.mediaType
          contentId = externalParams.contentId
        end if
      end if
    end if
  end while
end sub

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
roku_builder-4.22.9 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.8 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.7 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.6 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.5 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.4 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.3 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.2 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.22.1 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.6 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.5 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.4 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.3 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.2 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.1 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.21.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.20.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.19.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.18.0 test/roku_builder/test_files/analyzer_test/source/main.brs