content: sub init()
    m.top.observeField("itemContent", "onItemContentChange")
    m.top.observeField("focusPercent", "onFocusPercentChange")
    m.top.observeField("rowFocusPercent", "onFocusPercentChange") ' Also observe rowFocus for initial focus
  end sub
  
  sub onItemContentChange()
    itemContent = m.top.itemContent
    if itemContent <> invalid
      poster = m.top.findNode("videoPoster")
      poster.uri = itemContent.thumbnail_url
      ' If you added a Label for the title in VideoItem.xml:
      ' titleLabel = m.top.findNode("videoTitle")
      ' titleLabel.text = itemContent.title
    end if
  end sub
  
  sub onFocusPercentChange()
    focusAnimation = m.top.findNode("focusAnimation")
    if m.top.hasFocus()
      focusAnimation.control = "start"
    else
      focusAnimation.control = "rewind"
    end if
  end sub
  