Forum Discussion

regularsteve's avatar
15 years ago

RSS Libsyn Script [noob] :(

Hello,

I've been toying like a kid with a new set of Lego with the Roku SDK. Unfortunately I can't get one of my main projects to work. I'm just looking for a script that will facilitate a channel for an RSS Libsyn feed for an audio-only mp3 podcast.

Does anyone have such an example script / .zip? If so I can paste in everything, case closed.

I've been searching the forums and I can't seem to find anything. Other items I seem to find won't show up when I upload to my box. Same for examples in the SDK. I must be missing some glaring item.

Thanks for your help, and I apologize for my naivete.

4 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert
    Two questions:
    1) Did you put your box into development mode?
    2) Are you zipping things properly? You should be zipping starting at the directory with the manifest and include directories in the zip. So your zip should look like:
    manfest
    source/main.brs
    source/other.brs
    images/image1.jpg
    images/image2.jpg
    etc.

    The examples/zips directory of the SDK has prezipped applications that should just work.

    -JT
  • The audioapp in the SDK plays audio only files. You could modify it to point to your .mp3 file.

    --Kevin
  • jbrave's avatar
    jbrave
    Channel Surfer
    Try this to get your learning curve rolling:

    1. figure out how to create an RoXMLTransfer object
    2.use it to retrieve your rss feed with the gettostring function (I recommend the synchronous function for starting off)
    3. Now create an XML object and figure out how to use the parse function to get the data from your rss feed into an object you can work with
    4. Now figure out how to get the data elements out of the xml object into text strings in an array (Hint, two different types of arrays are used for this process)

    5. Create an audioplayer object the way you did #1
    6. figure out how to load and play audio files with it
    7. figure out how to get the mp3 urls from your processed xml object into the audioplayer.

    Of course, you can ask questions in the forum for each step of the way when you have trouble.

    - Joel