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 :slightly_smiling_face:
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

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

–Mark

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 :disappointed_face:

I’m using belltown’s Brightscript SDK file so i assume I need to put the message box in the RokuFeed.brs file somewhere?

“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?

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

“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, …