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
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>
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?
Tried to run it again with the changed urls but still no go
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>
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.
“belltown” wrote:
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.
Yeah, that seems too confusing for me
Still not working
Where would I put the Print statement and what syntax would I use?
BrightScript Debugger> ------ Running ------
created feed connection for http://drive.google.com/file/d/0B8tqpzculA5TdXYwVFBNMXFIMU0/view?usp=sharing
url: http://drive.google.com/file/d/0B8tqpzculA5TdXYwVFBNMXFIMU0/view?usp=sharing
Took: 184ms
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>
I was able to successfully host my xml files on github after trying dropbox and google drive to no avail. It is free if you don’t mind the xml be available for the public to see. I am able to host the images for the channel on dropbox without issue. I was forced to do this after my ISP decided to obliterate the personal web space I had hosted on for many a year. Uggghhh