journeyman73
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2011
07:11 AM
star rating & runtime
Hi,
i'm tweaking the videoplayer example and I have come across a little problem.
I want to remove the ratings stars from the details screen and also the running time
Also when I remove one of the buttons to play it breaks
how can i do these things
Cheers
Kevin
i'm tweaking the videoplayer example and I have come across a little problem.
I want to remove the ratings stars from the details screen and also the running time
Also when I remove one of the buttons to play it breaks
how can i do these things
Cheers
Kevin
11 REPLIES 11
journeyman73
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2011
08:15 AM
Re: star rating & runtime
Hi, just an update.
I've sorted the button issue but i have another question.
in the xml I want to use a live stream, are there settings i need for it?
Kev
I've sorted the button issue but i have another question.
in the xml I want to use a live stream, are there settings i need for it?
Kev
journeyman73
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2011
08:30 AM
Re: star rating & runtime
anybody have any ideas????
Kevin
Kevin
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2011
11:48 AM
Re: star rating & runtime
From the simpleVideoPlayer example with a live stream, the xml has
' Big Buck Bunny test stream from Wowza
'urls = ["http://ec2-174-129-153-104.compute-1.amazonaws.com:1935/vod/smil:BigBuckBunny.smil/playlist.m3u8"]
'qualities = ["SD"]
'streamformat = "hls"
'title = "Big Buck Bunny"
I don't know if 'qualities' is required or not.
' Big Buck Bunny test stream from Wowza
'urls = ["http://ec2-174-129-153-104.compute-1.amazonaws.com:1935/vod/smil:BigBuckBunny.smil/playlist.m3u8"]
'qualities = ["SD"]
'streamformat = "hls"
'title = "Big Buck Bunny"
I don't know if 'qualities' is required or not.
journeyman73
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2011
01:45 AM
Re: star rating & runtime
yea the xml does not have those qualities in there but the icons still appear on the video details page
Cheers
Cheers
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2011
02:14 PM
Re: star rating & runtime
I am also looking for a way to remove the stars in the videoplayer example. I removed the color, but the graphical stars I have not found yet. Must be a static variable somewhere. Let us know what is found if we don't find it in the videoplayer example code.
Update: I added this line in Bold in the videoplayer example to remove the stars in the appDetailScreen.brs file:
screen.ClearButtons()
screen.AddButton(1, "Resume Playing")
screen.AddButton(2, "Play from Beginning")
'Remove stars from screen
screen.SetStaticRatingEnabled(false)
screen.SetContent(show)
screen.Show()
DA
Update: I added this line in Bold in the videoplayer example to remove the stars in the appDetailScreen.brs file:
screen.ClearButtons()
screen.AddButton(1, "Resume Playing")
screen.AddButton(2, "Play from Beginning")
'Remove stars from screen
screen.SetStaticRatingEnabled(false)
screen.SetContent(show)
screen.Show()
DA
creator
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
05:03 PM
Re: star rating & runtime
Thanks to Bandal for the answer on how to remove the star ratings. I also could not find anything to take out of the code to make the stars go away. Does anybody know how to take the runtime info out also. I am trying to do this also. I added a little square to the end of the code Bandal gave us and it worked for me. I guess the square is like a period in a sentance of code.
creator
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
05:31 PM
Re: star rating & runtime
The time is in sec in the xml. It is <runtime>sec</runtime>. 1hr 10 min = 4200 sec for it to display 1hr 10 min. I tried to take the runtime code out but it just displayed 0 for the run time. Does anybody know what I can do to not display zero run time. I don't want to display any runtime.


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
05:59 PM
Re: star rating & runtime
"creator" wrote:
The time is in sec in the xml. It is <runtime>sec</runtime>. 1hr 10 min = 4200 sec for it to display 1hr 10 min. I tried to take the runtime code out but it just displayed 0 for the run time. Does anybody know what I can do to not display zero run time. I don't want to display any runtime.
To not display the runtime, the length attribute of your content-meta-data structure needs to be invalid. If I recall correctly, the parsing logic in the sample converts an empty string to zero. So you'd need to modify that part of the code and remove the line that assigns the value of the length attribute.

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
06:03 PM
Re: star rating & runtime
I think if you comment-out, or remove this line:
item.Runtime = validstr(curShow.runtime.GetText())
and this line:
item.Length = strtoi(item.Runtime)
in function parse_show_feed, which is in showFeed.brs, that will remove it.
(to comment a line out, so that it no longer does anything, just put a single-quote mark in front of it like this):
'this line is just a comment
- Joel
item.Runtime = validstr(curShow.runtime.GetText())
and this line:
item.Length = strtoi(item.Runtime)
in function parse_show_feed, which is in showFeed.brs, that will remove it.
(to comment a line out, so that it no longer does anything, just put a single-quote mark in front of it like this):
'this line is just a comment
- Joel