Streaming Audio Gadget/Widget?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
Is a streaming audio gadget/widget too much to ask? It could just use the <audio> tag. I've try to do it myself just by editing the HTML of a presentation/placeholder, but I don't have the aptitude. All I'm trying to do is bring in audio from publicdomainproject.org. I can use the <audio> tag to autoplay, but with how I implemented it I ran into a lot of trouble with starting and stopping and audio getting mixed up with video audio. My reasoning is, if it were an audio widget, then I could stop it appropriately when starting video.

~Adam
Photo of Media Manager

Media Manager

  • 1,670 Points 1k badge 2x thumb
  • frustrated

Posted 3 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Media Manager,

As of right now there is no work slated for an Audio Widget as part of our core content. However, maybe a third party developer will see this interest and possibly provide something.

Can I ask how you've implemented these audio streams in the past? I took a look at your presentation, and I don't currently see any audio streams. Were you using the HTML Widget? If so, were you using it in a placeholder with a Video Widget? If so, you may be able to create two presentations, they should be exactly the same, with the exception that one has the Video Widget, and one has the HTML Widget. My theory is that you create these two presentations, add them to a schedule, set the presentation with Video to Play Until Done, and set the duration of the presentation with HTML to your desired play length.

Please let me know what you think! 
Photo of Media Manager

Media Manager

  • 1,670 Points 1k badge 2x thumb
Yes, I just started trying to do this. I was editing the HTML directly. I will give the HTML widget a try instead.

I considered duplicate presentations less the audio HTML bit, but haven't tried to implement that yet. I am thinking that would be a scheduling nightmare, so I have some trepidation going down that road. However, I will give it a try and see how it goes.

Thank you for your response.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Adam,

Let us know how it works out! Make sure when scheduling your presentations, you do so from https://apps.risevision.com/schedules and NOT the old rva.risevision.com schedules site. The new Schedules App includes Play Until Done functionality, which will be of great use here.
Photo of Media Manager

Media Manager

  • 1,670 Points 1k badge 2x thumb
This didn't work with videos in embedded presentations. It really didn't even work between items in a single presentation placeholder. Here's how it is: I have a Presentation with two placeholders. One placeholder has one item in it, the other, which I'll call 'Main', has several items. The first item in Main is an HTML type with an iframe Google Slide presentation in it. I thought, if I put the audio tag in that, then it will play when the Main placeholder starts and should stop with the next item, which doesn't have an audio tag in it. This is not what happens. The audio continues to play right on through, even when a video in another item comes up.

Why is it that the video doesn't continuously play, yet the the audio in an item which is no longer visible does?

I've revamp my schedule to accommodate longer videos which play in their own duplicated Presentation, but like I feared, it is a bit of a scheduling fiasco that I don't have the time to address at this time. I'm sure that will solve the immediate issue of playing audio over video which I don't which to play several times a day. However, I still do have videos which I would like to play as the daily Presentation repeats all day long.
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi Media Manager,
Instead of the HTML Widget, can you try linking to the Google Slides presentation using the Web Page Widget? There is an additional checkbox added "Unload Web Page when not visible in Presentation (recommended)" . More details about the checkbox is at https://community.risevision.com/rise...

Let us know how you go,
Hannah
Photo of Media Manager

Media Manager

  • 1,670 Points 1k badge 2x thumb
Hmmm... I'm using the old editor because I have some deprecated items which I'm not willing to give up yet. Also, the Slide doesn't contain the audio. Only the placeholder HTML item is using the audio tag. I don't understand how this approach will address the issue of stopping streaming audio when a video in the same placeholder begins.
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi Adam,
Thanks! I just saw the remark about adding in a separate <audio> tag.
This would involve the Web Page Widget suggestion again... but you can try embedding the <audio> tag in a .html page which you can upload to your own server or to Rise Storage. Following that, you can try the Web Page Widget with the "Unload Web Page when not visible in Presentation (recommended)" box marked to stop the audio resources from running in the background.
Following that, you can use the Web Page Widget to add Google Slides or embed via HTML.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Media Manager, 

If you add a text item to show for 10 seconds, and then the HTML Widget using the audio tag to point to an mp3 file in Storage, it works as expected. Check it out here

Will that work for you?
Photo of mlm

mlm, Official Rep

  • 4,624 Points 4k badge 2x thumb
Here is the source html for anyone who would like to try it out.
Just copy all of the html and replace the entire contents of a new presentations html in html view.

https://github.com/Rise-Vision/community-presentations/blob/master/audio-html-tag.html
Photo of Media Manager

Media Manager

  • 1,670 Points 1k badge 2x thumb
I created an invisible placeholder with an HTML widget where I put the audio tag. That seems to have worked for now. I will update when I attempt to schedule video presentations between my daily presentation.

~Adam
(Edited)