Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Tyler_Smith
Level 7

Using the <audio> component

Good morning,

I am looking to use the new <audio> component to play background audio in my application.
The source is a local file in my app, and I can play it via the <video> component, but it does not seem to work with the <audio> component. Does anyone have a working example, or tell me any caveats to using this?
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
7 Replies
adamkaz
Level 7

Re: Using the <audio> component

What format is the audio clip?
0 Kudos
Tyler_Smith
Level 7

Re: Using the <audio> component

Format is MP3
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
Tyler_Smith
Level 7

Re: Using the <audio> component

"adamkaz" wrote:
What format is the audio clip?

Format is MP3
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
Tyler_Smith
Level 7

Re: Using the <audio> component

Anyone?
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
RobSMS
Level 7

Re: Using the <audio> component

Yeah, I would like to see this in action as well. I was able to get the video node to play an MP3, but it doesn't seem to want to play ShoutCast streams. I'm hoping the audio node will rectify that.
Need Apps Templates? Content Management for OTT/IPTV? Check me out @ http://rovidx.com
0 Kudos
Tyler_Smith
Level 7

Re: Using the <audio> component

"RobSMS" wrote:
Yeah, I would like to see this in action as well. I was able to get the video node to play an MP3, but it doesn't seem to want to play ShoutCast streams. I'm hoping the audio node will rectify that.


Similar situation, works fine as a Video node, but not Audio.
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
RobSMS
Level 7

Re: Using the <audio> component

Just an FYI update....

You need to add a trailing / to the end of the ShoutCast url. This also works with the Audio Node Example


Incorrect: http://173.245.78.90:80
Correct: http://173.245.78.90:80/
Need Apps Templates? Content Management for OTT/IPTV? Check me out @ http://rovidx.com
0 Kudos