Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
phloide
Visitor

XML help

ok, in the videoplayer demo, I am trying to replace in the categoryFeed.brs

conn.UrlPrefix = "http://rokudev.roku.com/rokudev/examples/videoplayer/xml"

with

conn.UrlPrefix = "../xml"

to access the files in the xml forlder, but this apprently is not working...
when I upload it with the "../xml" it freezes

Thanks
0 Kudos
3 REPLIES 3
RokuJoel
Binge Watcher

Re: XML help

are you trying to load local XML? if so, then you need to replace any url transfers with readAsciiFile("pkg:/xml/filename.xml")

- Joel
0 Kudos
phloide
Visitor

Re: XML help

Thanks!
0 Kudos
phloide
Visitor

Re: XML help

ok... i am showing my nubie status with xml.

i am running over the xml example in the videoplayer, and I am trying to determine which are essential elements to include in the xml code and which ones are "descriptors" and or not essential

<contentId>10003</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>mp4</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.phloide.com/videos/sine_computersettings.mp4</streamUrl>
</media>
I read that if I don't define stream format, it is automatically assumed to be mp4

I am also not sure what the SD and HD all determine.
what
Thanks
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.