"renojim" wrote:
The one for which invalid was returned was only 60k. I was hoping for an official response from someone at Roku. I really don't feel like experimenting and no matter how you look at it GetMetaData is just plain flawed.
-JT
sound = CreateObject("roAudioResource", "pkg:/assets/audio/cartoon002.wav")
print "Sound is "+type(sound)
"Sound is Invalid"
BrightScript Debugger> res=createobject("roAudioResource","pkg:/images/cartoon002.wav")
BrightScript Debugger> ?type(res)
roAudioResource
BrightScript Debugger> res.trigger(100)
BrightScript Debugger> print listdir("pkg:/assets/audio/")
"AlexHolsgrove" wrote:
OK, so my BrightScript project didn't automatically include the additional directories!
"AlexHolsgrove" wrote:
Strangely, I am able to put the audio file into /images/ and it loads fine as roAudioResource.
"AlexHolsgrove" wrote:
If I use /assets/audio/ then it still remains Invalid - even if I make sure to include that path in the build (export).
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!