
hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2016
07:36 AM
how to create a loading for movie
I want to make a loading for the movie information to indicate how long already seeing with a bar using roImageCanvas and roVideoPlayer
this example
this example

Our system http://www.rokumanager.com
3 REPLIES 3

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2016
07:29 PM
Re: how to create a loading for movie
this code
countdowntotal = m.player.getplaybackduration() - m.position
minutes = int(countdowntotal / 60)
seconds = int(countdowntotal - (minutes * 60))
if seconds < 10
seconds = "0"+seconds.tostr()
end if
countdownstr = minutes.tostr()+":"+seconds.tostr()
obtaining hour
countdowntotal = m.player.getplaybackduration() - m.position
minutes = int(countdowntotal / 60)
seconds = int(countdowntotal - (minutes * 60))
if seconds < 10
seconds = "0"+seconds.tostr()
end if
countdownstr = minutes.tostr()+":"+seconds.tostr()
obtaining hour
Our system http://www.rokumanager.com

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2016
08:03 PM
Re: how to create a loading for movie
ok solution
countdowntotal = m.player.getplaybackduration() - m.position
hour = int(countdowntotal / 3600)
minutes = int((countdowntotal - (hour * 3600)) / 60)
'minutes = int(countdowntotal / 60)
seconds = int(countdowntotal - (minutes * 60))
if seconds < 10
seconds = "0"+seconds.tostr()
end if
countdownstr = hour.tostr()+"h "+minutes.tostr()+"m "+seconds.tostr()+"s "
countdowntotal = m.player.getplaybackduration() - m.position
hour = int(countdowntotal / 3600)
minutes = int((countdowntotal - (hour * 3600)) / 60)
'minutes = int(countdowntotal / 60)
seconds = int(countdowntotal - (minutes * 60))
if seconds < 10
seconds = "0"+seconds.tostr()
end if
countdownstr = hour.tostr()+"h "+minutes.tostr()+"m "+seconds.tostr()+"s "
Our system http://www.rokumanager.com

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2016
09:02 PM
Re: how to create a loading for movie
closed caption/audio not work with roImageCanvas
Our system http://www.rokumanager.com