Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
matrixebiz
Level 7

Help with fixing channel settings

Hello, I've created a channel that is supposed to load an hls but when the channel first launches it just gets stuck at the first loading screen ICON and the Roku is telling me this;
BrightScript Debugger> ------ Running ------
created feed connection for https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
url: https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
Took: 125ms
Can't parse feed


probably just something simple but this is my first channel so need some guidance. not sure if the issue is where I am storing the xml files. I can show you my xml files if this is the right forum for this type of help. Thank you
0 Kudos
13 Replies
destruk
Level 10

Re: Help with fixing channel settings

Online xml validator says --
Errors in the XML document:
1: 55 The standalone document declaration value must be "yes" or "no", not "true".

http://www.xmlvalidation.com/
0 Kudos
matrixebiz
Level 7

Re: Help with fixing channel settings

Hello, thank you for responding.
Where are you seeing this? Both my xml files say: No errors were found

Did you use some "Validate against external XML schema"
Both the xml's don't have that yes or no variable


themind.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>2</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>2</endIndex>
<item sdImg="">
<title>The Shopping Channel</title>
<contentId>10001</contentId>
<contentType>Shopping</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>tscstreaming-lh.akamaihd.net/i/TSCLiveStreaming_1@91031/index_3_av-p.m3u8</streamUrl>
</media>
<synopsis>The Shopping Channel</synopsis>
<genres>Clip</genres>
<runtime>1200</runtime>
</item>
</feed>


categories.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>

<!-- banner_ad: optional element which displays an at the top level category screen -->
<banner_ad sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png"/>

<category title="TSC" description="The Shopping Channel" sd_img="https://dl.dropboxusercontent.com/s/0ii7w0a2ujfc3l0/TSC%20214x144%20SD.jpg" hd_img="https://dl.dropboxusercontent.com/s/bubxi7hib8msfq6/TSC%20290x218%20HD.jpg">
<categoryLeaf title="TSC" description="The Shopping Channel" feed="https://dl.dropboxusercontent.com/s/4wrorazfb1cnaop/themind.xml"/>
</category>
</categories>
0 Kudos
Roku Employee
Roku Employee

Re: Help with fixing channel settings

The URL you gave as an example:

https://dl.dropboxusercontent.com/s/ayb ... gories.xml

returns
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
...

for me.
0 Kudos
matrixebiz
Level 7

Re: Help with fixing channel settings

see next post
0 Kudos
matrixebiz
Level 7

Re: Help with fixing channel settings

Is there another file hoster I can use?
0 Kudos
matrixebiz
Level 7

Re: Help with fixing channel settings

When I view it in Internet explorer it change it to True instead of Yes depending on the link I use which should be the same thing;

https://www.dropbox.com/s/kxzb5ct2gkns4 ... s.xml?dl=0
https://dl.dropboxusercontent.com/s/kxz ... gories.xml

Need another file hoster I can use for these files please

I don't know what kind of links I can use with the channel to read the xml files.
Will the Roku read them off an ftp server, will the first link I posted above work?

in the categoryfeed.brs can I change;
conn.UrlPrefix = "https://dl.dropboxusercontent.com/s/aybs8xiap91uowy"
conn.UrlCategoryFeed = conn.UrlPrefix + "/categories.xml"

to
'** conn.UrlPrefix = "https://dl.dropboxusercontent.com/s/aybs8xiap91uowy"
conn.UrlCategoryFeed = "https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0"

Even though this is in categoryfeed.brs: Dbg("url: ", http.Http.GetUrl())
Can I still use https urls' ?
0 Kudos
matrixebiz
Level 7

Re: Help with fixing channel settings

Tried to run it again with the changed urls but still no go Smiley Sad


BrightScript Debugger> ------ Running ------
created feed connection for https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
url: https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
Took: 243ms
Can't parse feed
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Current Function:
034: Function get_category_names(categories As Object) As Dynamic
035:
036: categoryNames = CreateObject("roArray", 100, true)
037:
038:* for each category in categories.kids
039: 'print category.Title
040: categoryNames.Push(category.Title)
041: next
042:
Syntax Error. (runtime error &h02) in pkg:/source/categoryFeed.brs(38)
038: for each category in categories.kids
Backtrace:
#3 Function get_category_names(categories As Object) As Dynamic
file/line: pkg:/source/categoryFeed.brs(38)
#2 Function initcategorylist() As Void
file/line: pkg:/source/appHomeScreen.brs(112)
#1 Function showhomescreen(screen As Dynamic) As Integer
file/line: pkg:/source/appHomeScreen.brs(39)
#0 Function main() As Void
file/line: pkg:/source/appMain.brs(20)
Local Variables:
categories bsc:roInvalid refcnt=1
global rotINTERFACE:ifGlobal
m roAssociativeArray refcnt=3 count:4
categorynames roArray refcnt=1 count:0
category <uninitialized>
BrightScript Debugger>
0 Kudos
belltown
Level 7

Re: Help with fixing channel settings

Put a Print statement before the Parse so you can see the exact Xml that you are passing to the parser.

If you want somewhere other than dropbox to host your Xml files, you could try Google App Engine. I use it for some of my Xml file hosting and web sites. It works well and it's free (up to 1GB per day of incoming and outgoing bandwidth, and 1GB of code and static file storage), although there's quite a bit of a learning curve to set it up.
https://github.com/belltown/
0 Kudos
TheEndless
Level 7

Re: Help with fixing channel settings

https://www.dropbox.com/s/kxzb5ct2gkns4 ... s.xml?dl=0 sends me to a log in/sign in page. I suspect that's your issue. You need to authenticate with dropbox to make that request.
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