content: ' ********** Copyright 2016 Roku Corp.  All Rights Reserved. **********
  
  sub Main()
    reg = CreateObject("roRegistrySection", "profile")
    if reg.Exists("primaryfeed") then
      url = reg.Read("primaryfeed")
    else
      url = "https://mater.com.ua/ip/ua.m3u"
    end if
  
    screen = CreateObject("roSGScreen")
    m.port = CreateObject("roMessagePort")
    screen.setMessagePort(m.port)
    m.global = screen.getGlobalNode()
    m.global.addFields({ feedurl: url })
    scene = screen.CreateScene("MainScene")
    screen.show()
    ' vscode_rdb_on_device_component_entry
  
    while(true)
      msg = wait(0, m.port)
      msgType = type(msg)
      print "msgTYPE >>>>>>>>"; type(msg)
      if msgType = "roSGScreenEvent"
        if msg.isScreenClosed() then return
      end if
    end while
  
  end sub
  