Hi Kevin thanks for that I have a couple of questions I seemed to cant get my head around. First of all I am not a Programmer I just build web pages so here goes
This is all I need to do before I can publish my channel
1. Using the Videoplayer example I need to add the following fields both in the sorce code and in the XML
a. Director
b. rating ( I believe this is a image do I need to supply or is it in the Roku box?)
c. Categories 1
d. Categories 2
e. release date
f. change the color of text on the Play and Resume Play un-focused buttton at the moment it is grey when not selected I need it to be white(#ffffff)
g. and somehow get the 4 line of text (250 ch) for the synopsis ( description) at the monent I only get 2 lines and ... at the end.
here is my xml file with everything in it but the ratings not sure how to add that.
<item sdImg="location of image" hdImg="location of image">
<title>Movie title</title>
<contentId>10011</contentId>
<contentType>Classic Film</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>location of video</streamUrl>
</media>
<synopsis>description of film</synopsis>
<genres>Classic Film</genres> THIS FIELD IS ACTUALLY ACTORS ON THE roSpringboard
<runtime>7200</runtime>
<releasedate></releasedate> Need to add this
<rating></rating> Need to add this but I believe it is a image?
<Director></Director> Need to add this
<category1></category1>Need to add this
<category2></category2>Need to add this
</item>
here is my appMain.brs info
theme.BreadcrumbTextLeft = "#003366"
theme.BreadcrumbTextRight = "#003366"
theme.SpringboardActorColor = "#FFFFFF"
theme.BackgroundColor = "#006699"
theme.SpringboardRuntimeColor = "#003366"
theme.SpringboardSynopsisColor = "#ffffff"
theme.SpringboardGenreColor = "#000000"
theme.SpringboardTitleText = "#003366"
theme.SpringboardReleaseDateColor = "#ffffff"
theme.SpringboardDirectorText = "Written by"
theme.SpringboardDirectorLabelColor = "#0000FF"
theme.SpringboardDirectorColor = "#ffffff"
theme.PosterScreenLine1Text = "#ffffff"
theme.PosterScreenLine2Text = "#ffffff"
and here is my showfeed.brs
Function init_show_feed_item() As Object
o = CreateObject("roAssociativeArray")
o.ContentId = ""
o.Title = ""
o.ContentType = ""
o.ContentQuality = ""
o.Synopsis = ""
o.Genre = ""
o.ReleaseDate = ""
o.Director = ""
o.Runtime = ""
o.category1 = ""
o.category2 = ""
o.StreamQualities = CreateObject("roArray", 5, true)
o.StreamBitrates = CreateObject("roArray", 5, true)
o.StreamUrls = CreateObject("roArray", 5, true)
return o
End Function
and I believe they go here to
Function parse_show_feed(xml As Object, feed As Object) As Void
showCount = 0
showList = xml.GetChildElements()
for each curShow in showList
'for now, don't process meta info about the feed size
if curShow.GetName() = "resultLength" or curShow.GetName() = "endIndex" then
goto skipitem
endif
item = init_show_feed_item()
'fetch all values from the xml for the current show
item.hdImg = validstr(curShow@hdImg)
item.sdImg = validstr(curShow@sdImg)
item.ContentId = validstr(curShow.contentId.GetText())
item.Title = validstr(curShow.title.GetText())
item.Description = validstr(curShow.description.GetText())
item.ContentType = validstr(curShow.contentType.GetText())
item.ContentQuality = validstr(curShow.contentQuality.GetText())
item.Synopsis = validstr(curShow.synopsis.GetText())
item.Genre = validstr(curShow.genres.GetText())
item.Director = validstr(curShow.director.GetText())
item.ReleaseDate = validstr(curShow.releasedate.GetText())
item.Runtime = validstr(curShow.runtime.GetText())
item.HDBifUrl = validstr(curShow.hdBifUrl.GetText())
item.SDBifUrl = validstr(curShow.sdBifUrl.GetText())
item.StreamFormat = validstr(curShow.streamFormat.GetText())
if item.StreamFormat = "" then 'set default streamFormat to mp4 if doesn't exist in xml
item.StreamFormat = "mp4"
endif
Basicly I need to match my xml file so that it can display the info in it on the roSpringboard page so I can display them.
It would be nice if the videoplayer example had all of the data in it so you could turn on or turn off what you did not need or so you could see how it was added
Thanks in advance for your help I'm just stuck at the moment
Cheers
DEW