# RoVideoScreen is not working

**URL:** <https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [May 14, 2011, 11:49pm UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246 "2011-05-14T23:49:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jseigle85](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jseigle85](https://forum.developer.roku.com/u/jseigle85)\
**Post date:** [May 14, 2011, 11:49pm UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/1 "2011-05-14T23:49:03Z")

</div>

Can someone tell me why the rovideoscreen is not working. I have a manifest, source which has the main.brs file inside it, and images

This is the only thing I have in the source/main.brr file

```auto
Sub Main()
    screen = CreateObject("roVideoScreen")
    screen.SetContent({
        Title: "My Video"
        StreamFormat: "hls"
        Stream: { URL: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8"}
    })
    screen.Show()
End Sub

```

Can someone tell me what needs to be added “the code needed” to make this play

And if I use the “roVideoPlayer” will the coding be the same or will it change

---

<div class="post-metadata">

**Author:** ![RokuChris](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RokuChris](https://forum.developer.roku.com/u/RokuChris)\
**Post date:** [May 15, 2011, 12:26am UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/2 "2011-05-15T00:26:53Z")

</div>

Because you don’t have an event loop, your channel is exiting before the video can be played. You need to add an event loop after screen.Show(). Check out some of the sample channels to see how an event loop works.

---

<div class="post-metadata">

**Author:** ![jseigle85](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jseigle85](https://forum.developer.roku.com/u/jseigle85)\
**Post date:** [May 15, 2011, 12:36am UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/3 "2011-05-15T00:36:32Z")

</div>

Do you have to use the eventloop for every application that use roVideoScreen and roVideoPlayer.

Also other than the BrightScript Reference is there a manual that have all of the coding for each component.

Can you provide me with a example of how to add an eventloop to this code. I am not understanding how it works in the example.

---

<div class="post-metadata">

**Author:** ![RokuChris](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RokuChris](https://forum.developer.roku.com/u/RokuChris)\
**Post date:** [May 15, 2011, 12:50am UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/4 "2011-05-15T00:50:24Z")

</div>

The _Component Reference_ in the SDK documents all the available components.

Event loops are how your channel catches and reacts to events generated by the user and by the components within your channel, so yes, they are a very important part of any channel. A very minimal event loop might look like this:

```auto
while true
  msg = Wait(0, port) ' where port is a roMessagePort
  if type(msg) = "roVideoScreenEvent"
    if msg.isScreenClosed()
      exit while
    end if
  end if
end while

```

---

<div class="post-metadata">

**Author:** ![jseigle85](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jseigle85](https://forum.developer.roku.com/u/jseigle85)\
**Post date:** [May 15, 2011, 3:11am UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/5 "2011-05-15T03:11:13Z")

</div>

Thank you the code works great, but I have one more problem with it. After the stream has stop playing it exit out to the Roku Menu. Is there a way I can make it go back to a loading status or do I have to use roVideoPlayer for that

---

<div class="post-metadata">

**Author:** ![stratcat96](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@stratcat96](https://forum.developer.roku.com/u/stratcat96)\
**Post date:** [May 15, 2011, 3:41am UTC](https://forum.developer.roku.com/t/rovideoscreen-is-not-working/1246/6 "2011-05-15T03:41:45Z")

</div>

> “jseigle85” wrote:  
> Thank you the code works great, but I have one more problem with it. After the stream has stop playing it exit out to the Roku Menu. Is there a way I can make it go back to a loading status or do I have to use roVideoPlayer for that

Try putting in a springboard that when the channel is clicked on goes straight to that with the option then to play the stream and display the videoscreen. When you back out of the stream or it finishes, it returns to the springboard with the ability to restart. That actually is the structure of the simple video player example. It’s jumping back to the main menu because there’s no object to fall back on after the videoscreen is exited
