Nyphur
13 years agoVisitor
Question about channel developing and meta-data usage
Hello,
I am trying to build up my own Roku channel with HLS links that point to livestreams. I have based my XML files on the videoplayer example in the Roku SDK. First of all, it works, so the videos are playing, but I am not 100% satisfied yet with some minor issues.
The links are all live-streams, but for most of the channels it gives me the option (before I start playing the video) if i want to "resume" or "play from the beginning". But that's of course wrong, the links should just be started.
For some links this is working and it only offers me to play the video, but for most of them it does not. I could not figure out why, because mostly I did a copy&paste-job and all the settings should be the same for each links. I only changed the SD and HD images and the link and description.
Here is an example of the code that I use for the links (please notice the comments inside the code, because i have small questions for a few single options)
I have found this page containing a lot of meta-data options for the channel: http://sdkdocs.roku.com/display/sdkdoc4 ... +Meta-Data
But can I use those options in my XML file for the channel, just by putting the option into brackets <option>...</option> or do I have to use those meta-data within any .brs file inside the ..\source folder?
As you can see, I am so in the beginning in Roku developing as I possible could be, but I unfortunately do not find very good tutorials or examples, that really show me how to do that. I have only the most basic programming skills and try to figure it out by myself - but now i am stuck.
I appreciate any help! Thank you very much!
Nyphur
I am trying to build up my own Roku channel with HLS links that point to livestreams. I have based my XML files on the videoplayer example in the Roku SDK. First of all, it works, so the videos are playing, but I am not 100% satisfied yet with some minor issues.
The links are all live-streams, but for most of the channels it gives me the option (before I start playing the video) if i want to "resume" or "play from the beginning". But that's of course wrong, the links should just be started.
For some links this is working and it only offers me to play the video, but for most of them it does not. I could not figure out why, because mostly I did a copy&paste-job and all the settings should be the same for each links. I only changed the SD and HD images and the link and description.
Here is an example of the code that I use for the links (please notice the comments inside the code, because i have small questions for a few single options)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>1</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>1</endIndex>
<item sdImg="http://www.blablabla/xyz_SD.png" hdImg="http://www.blablabla/xyz_HD.png">
<title>Title of the channel</title>
<contentId>10201</contentId> <-- Here I just choose any number that is unique for this particular channel, right?
<contentType>Movie</contentType> <-- do I choose "movie" also when it is a livestream? Why is there always "Talk" in the example files?
<contentQuality>HD</contentQuality>
<streamFormat>hls</streamFormat> <-- Is there any way to play RTSP, RTMP or UDP streams?
<media>
<streamQuality>HD</streamQuality>
<streamUrl>http://www.mystream.com/stream</streamUrl>
</media>
</item>
</feed>
I have found this page containing a lot of meta-data options for the channel: http://sdkdocs.roku.com/display/sdkdoc4 ... +Meta-Data
But can I use those options in my XML file for the channel, just by putting the option into brackets <option>...</option> or do I have to use those meta-data within any .brs file inside the ..\source folder?
As you can see, I am so in the beginning in Roku developing as I possible could be, but I unfortunately do not find very good tutorials or examples, that really show me how to do that. I have only the most basic programming skills and try to figure it out by myself - but now i am stuck.
I appreciate any help! Thank you very much!
Nyphur