Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bollywood
Visitor

Re: help with new private channel, stream won't play

yes, its a low bandwidth stream, it takes a while to load the first few times(almost 1 minute). after which it gets better. not sure if that has something to do with DNS caching.

are you viewing this on a SD TV or a Tube TV? how are the wallpaper and icons for the channel in SD?
Hawk Cam
Live footage from the nest on top of Bobst Library at N.Y.U.
copy and paste the link in your browser or use keyword: hawkcam

https://owner.roku.com/add/hawkcam
0 Kudos
bollywood
Visitor

Re: help with new private channel, stream won't play

I am trying to increase the size of the video on the main screen(not the full screen)in my channel. which one of these values actually define the video size. i am trying to increase it for HD mode only.

i am assuming the first group is for HD mode and the bottom group(in the "else" code) is for SD mode. am i right?

    if mode = "720p"
this.layout = {
full: this.canvas.GetCanvasRect()
top: { x: 0, y: 0, w:1280, h: 130 }
left: { x: 249, y: 177, w: 391, h: 291 }
right: { x: 700, y: 177, w: 350, h: 291 }
bottom: { x: 249, y: 500, w: 780, h: 300 }
}
this.background = "pkg:/images/back-hd.jpg"
this.headerfont = this.fonts.get("lmroman10 caps", 50, 50, false)
else
this.layout = {
full: this.canvas.GetCanvasRect()
top: { x: 0, y: 0, w: 720, h: 80 }
left: { x: 100, y: 100, w: 280, h: 210 }
right: { x: 400, y: 100, w: 220, h: 210 }
bottom: { x: 100, y: 340, w: 520, h: 140 }
}
Hawk Cam
Live footage from the nest on top of Bobst Library at N.Y.U.
copy and paste the link in your browser or use keyword: hawkcam

https://owner.roku.com/add/hawkcam
0 Kudos
TheEndless
Channel Surfer

Re: help with new private channel, stream won't play

You are correct in your HD/SD assumption. If you look a few lines further down in the code, you'll see the line that sets the rectangle for the video player:

this.player.SetDestinationRect(this.layout.left)

In this case, it's using the "left" rectangle, so you'd want to modify that one in your code to resize the video:

left:   { x: 249, y: 177, w: 391, h: 291 }
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bollywood
Visitor

Re: help with new private channel, stream won't play

thank you, i am trying to test it and hopefully it will work.
Hawk Cam
Live footage from the nest on top of Bobst Library at N.Y.U.
copy and paste the link in your browser or use keyword: hawkcam

https://owner.roku.com/add/hawkcam
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.