neowinston
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017
08:27 AM
Audio player using roAudioPlayer not working
I'm using the following code to play audio, but it's not working. I've even put the code on Task, but no sound either. Wha am I doing wrong? Thanks for your help!
audioPlayer = CreateObject("roAudioPlayer")
port = CreateObject("roMessagePort")
audioPlayer.SetMessagePort(port)
song = CreateObject("roAssociativeArray")
song.url = m.top.programURL
audioplayer.addcontent(song)
audioplayer.setloop(false)
audioPlayer.play()
4 REPLIES 4
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017
11:32 AM
Re: Audio player using roAudioPlayer not working
roAudioPlayer cannot be used in roSG:
https://sdkdocs.roku.com/display/sdkdoc ... pt+Support
https://sdkdocs.roku.com/display/sdkdoc ... pt+Support
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
neowinston
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017
11:34 AM
Re: Audio player using roAudioPlayer not working
Thanks for the reply! What should I use? I appreciate your help.
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017
02:35 PM
Re: Audio player using roAudioPlayer not working
I haven't used any of them, but here ya go:
https://sdkdocs.roku.com/display/sdkdoc ... back+Nodes
https://sdkdocs.roku.com/display/sdkdoc ... back+Nodes
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
neowinston
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2017
11:52 AM
Re: Audio player using roAudioPlayer not working
Thank you, it helped me a lot!