Okay, let's recap as I'm getting myself confused:
1.) I added the lines in red to the appDetailScreen.brs file:
if msg.GetIndex() = 1
PlayStart = RegRead(showList[showIndex].ContentId)
if PlayStart <> invalid then
showList[showIndex].PlayStart = PlayStart.ToInt()
endif
showVideoScreen(showList[showIndex])
refreshShowDetail(screen,showList,showIndex)
endif
)
refreshShowDetail(screen,showList,showIndex)
else
playaudio(showlist, showindex)
refreshShowDetail(screen,showList,showIndex)
end if
endif if msg.GetIndex() = 3
endif
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
end if
2.) Then the following to showFeed.brs:
'fetch all values from the xml for the current show
item.hdImg = validstr(curShow@hdImg)
item.sdImg = validstr(curShow@sdImg)
item.ContentId = validstr(curShow.contentId.GetText())
item.Title = validstr(curShow.title.GetText())
item.Description = validstr(curShow.description.GetText())
item.ContentType = validstr(curShow.contentType.GetText())
item.ContentQuality = validstr(curShow.contentQuality.GetText())
item.contentformat = validstr(curShow.contentformat.GetText())
item.audiostreamurl = validstr(curShow.audiostreamurl.GetText())
item.Synopsis = validstr(curShow.synopsis.GetText())
item.Genre = validstr(curShow.genres.GetText())
item.Runtime = validstr(curShow.runtime.GetText())
item.HDBifUrl = validstr(curShow.hdBifUrl.GetText())
item.SDBifUrl = validstr(curShow.sdBifUrl.GetText())
item.StreamFormat = validstr(curShow.streamFormat.GetText())
if item.StreamFormat = "" then 'set default streamFormat to mp3 if doesn't exist in xml
item.StreamFormat = "mp3"
endif
3.) And then this to the top of appVideoScreen.brs:
.streamformat})
port=createobject("romessageport")
audio.SetMessagePort (port)
audio.play()
while true
msg=wait(0,port)
if lcase(type(msg))="roaudioplayerevent" then
if msg.isRequestSucceeded() then
return -1
else if msg.isrequestfailed() then
return -2
end if
end if
end while
end function4.) And then added the following red lines, and edited the blue (plus my info), in my .xml file:
<item sdImg="http://www.hauntedamericaradio.com/images/somalane.jpg" hdImg="http://www.hauntedamericaradio.com/images/somalane.jpg">
<title>Ghosts of Deadwood</title>
<description></description>
<contentId>10031</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<contentformat>audio</contentformat> <streamformat>mp3</streamformat> <media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<audiostreamurl>http://www.hauntedamericaradio.com/audio/Episode10.mp3</audiostreamurl> <streamUrl>http://www.hauntedamericaradio.com/audio/Episode10.mp3</streamUrl>
</media>
<synopsis>David Soma & Kathleen Lane</synopsis>
<genres>Paranormal</genres>
<runtime>7217</runtime>
</item>
anyone see where I went wrong??
Al
Creator, Producer, and Co-Host - Country Dreams radio show
http://www.countrydreamsradio.com
Founder - Independent Country Music Association
http://www.icmanet.com
Station Engineer - WBTN 1370 AM
http://www.wbtnam.org