idunno
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2012
09:07 AM
Loading screen for roscreen
The customvideoplayer program has a function where when a video is loading it will give the percentage loaded, the PaintFramedCanvas () function.
I would like to know how I could do something similar on a roscreen using drawtext to display the information on screen, or if there is an alternative.
Sub PaintFramedCanvas()
list = []
if m.progress < 100 'Video is currently buffering
list.Push({
Color: "#80000000"
TargetRect: m.layout.left
})
list.Push({
Text: "Loading..." + m.progress.tostr() + "%"
TargetRect: m.layout.left
})
else 'Video is currently playing
if m.paused
list.Push({
Color: "#80000000"
TargetRect: m.layout.left
CompositionMode: "Source"
})
list.Push({
Text: "Paused"
TargetRect: m.layout.left
})
else 'not paused
list.Push({
Color: "#00000000"
TargetRect: m.layout.left
CompositionMode: "Source"
})
end if
list.Push({
Text: "Current position: " + m.position.tostr() + " seconds"
TargetRect: m.layout.bottom
TextAttrs: { halign: "left", valign: "top", color: m.textcolor }
})
end if
m.canvas.SetLayer(1, list)
End Sub
I would like to know how I could do something similar on a roscreen using drawtext to display the information on screen, or if there is an alternative.
1 REPLY 1

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2012
11:26 AM
Re: Loading screen for roscreen
You absolutely can do it with roScreen and Drawtext. I'll take a look at porting CustomVideoPlayer to roScreen, I don't expect it to be too difficult, if I can do it quickly, I'll post it here for you.
- Joel
- Joel