# roVideoPlayer not showing up.

**URL:** <https://forum.developer.roku.com/t/rovideoplayer-not-showing-up/1035>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [May 6, 2011, 8:46pm UTC](https://forum.developer.roku.com/t/rovideoplayer-not-showing-up/1035 "2011-05-06T20:46:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ricardo](https://forum.developer.roku.com/u/ricardo)\
**Post date:** [May 6, 2011, 8:46pm UTC](https://forum.developer.roku.com/t/rovideoplayer-not-showing-up/1035/1 "2011-05-06T20:46:01Z")

</div>

I have the following code:

```auto

Function envivo(episode As Object, codcanal as string )
port = CreateObject("roMessagePort")
http = NewHttp(m.direccion + "roku_envivo.php?codcanal=" + codcanal + "&roku=" + m.idroku)
direccion = http.Http.GetToString()
	
player = CreateObject("roVideoPlayer")
player.SetMessagePort(port)
player.SetLoop(true)
player.SetPositionNotificationPeriod(1)
player.SetDestinationRect({x: 100, y: 100, w: 280, h: 210})
player.SetContentList([{Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" } }])
player.Play()

contador=1
while true

```

…but nothing is showing up…no video, no audio, no nothing…can anyone give me a hand?

---

<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 6, 2011, 9:46pm UTC](https://forum.developer.roku.com/t/rovideoplayer-not-showing-up/1035/2 "2011-05-06T21:46:20Z")

</div>

First, you aren’t setting the _streamFormat_ attribute of your content-meta-data structure. When that value is omitted, the device defaults to “mp4”, but your content is HLS. Second, you generally want to embed a roVideoPlayer in a roImageCanvas and you need to punch a hole in the canvas so you can see the video underneath it…

```auto
port = CreateObject("roMessagePort")
http = NewHttp(m.direccion + "roku_envivo.php?codcanal=" + codcanal + "&roku=" + m.idroku)
direccion = http.Http.GetToString()
   
canvas = CreateObject("roImageCanvas")
canvas.SetLayer(1, { color: "#00000000", compositionMode: "source" })
canvas.Show()

player = CreateObject("roVideoPlayer")
player.SetMessagePort(port)
player.SetLoop(true)
player.SetPositionNotificationPeriod(1)
player.SetDestinationRect({x: 100, y: 100, w: 280, h: 210})
player.SetContentList([{ streamFormat: "hls", Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" } }])
player.Play()

contador=1
while true

```
