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: 
Tyler_Smith
Binge Watcher

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
0 Kudos
7 REPLIES 7
adamkaz
Channel Surfer

Re: Using the <audio> component

What format is the audio clip?
0 Kudos
Tyler_Smith
Binge Watcher

Re: Using the <audio> component

Format is MP3
Tyler Smith
0 Kudos
Tyler_Smith
Binge Watcher

Re: Using the <audio> component

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

Format is MP3
Tyler Smith
0 Kudos
Tyler_Smith
Binge Watcher

Re: Using the <audio> component

Anyone?
Tyler Smith
0 Kudos
RobSMS
Visitor

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
Binge Watcher

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
0 Kudos
RobSMS
Visitor

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.