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: 
matrixebiz
Roku Guru

Help to use roMessageDialog

Hello, I hope I can word my question appropriately so I get a response back, I'll try to give the information I know properly 🙂
I have a Brightscript Roku channel that parses an XML file eg:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>
  <feed title="channel">
        <item sdImg="pkg:/images/SD/ch.jpg" hdImg="pkg:/images/HD/ch.jpg">
            <title>channle</title>
            <description></description>
            <streamFormat>hls</streamFormat>
           <media>
               <streamQuality>HD</streamQuality>
                <streamBitrate>0</streamBitrate>
               <streamUrl>http://myserver.com/master.m3u8</streamUrl>
            </media>
            <synopsis></synopsis>
           <genres>Cable</genres>
            <live>True</live>
         </item>
</feed>
</categories>

Can I add a roMessageDialog box in there somewhere or does the message box have to be external to the XML file parse?
https://sdkdocs.roku.com/display/sdkdoc/roMessageDialog

Thx
0 Kudos
5 REPLIES 5
RokuMarkn
Visitor

Re: Help to use roMessageDialog

The code to display a message box would go in your brightscript code, not in the xml file.

--Mark
0 Kudos
matrixebiz
Roku Guru

Re: Help to use roMessageDialog

Hi Mark, okay, crap because my channel icons and links on the main page are populated by/from the XML file so I'm not sure how to add another link on my main channel screen which when clicked on will prompt for this message box 😞

I'm using belltown's Brightscript SDK file so i assume I need to put the message box in the RokuFeed.brs file somewhere? 
0 Kudos
EnTerr
Roku Guru

Re: Help to use roMessageDialog

"matrixebiz" wrote:
I'm using belltown's Brightscript SDK file so i assume I need to put the message box in the RokuFeed.brs file somewhere? 

Wait what - belltown has gone to the Dark (XML) Side now?
0 Kudos
matrixebiz
Roku Guru

Re: Help to use roMessageDialog

Hi, I'm using this one : https://github.com/belltown/Roku-NewVideoPlayer
Is this not Brightscript?
0 Kudos
EnTerr
Roku Guru

Re: Help to use roMessageDialog

"matrixebiz" wrote:
Hi, I'm using this one : https://github.com/belltown/Roku-NewVideoPlayer
Is this not Brightscript?

Oh sorry - my bad, thought you are using RSG. Yes, roMessageDialog goes in one of the .brs files, which one depends on the app logic/expected behavior. E.g. could be in main.brs, UI.brs, ... 
0 Kudos