Select to view content in your preferred language

Stop/Switch Ambient sound

2560
7
04-12-2016 08:45 AM
TimWitt2
MVP Alum

Hey everbody,

I saw this great post by Owen Evans​ about adding ambient music to your story map https://developerscorner.storymaps.arcgis.com/using-the-html-audio-tag-in-your-story-map-f818d931625...

Is there a way to turn it off once a user scrolls to a certain section? Let's say I want the music only play during the first 4 sections of my story map and after that either switch to a different ambient music or turn it off.

Thanks,

Tim

Tags (1)
0 Kudos
7 Replies
OwenGeo
Esri Notable Contributor

Hi Tim,

That's a cool idea, but I can't think of a way to control the audio in that way other than downloading the app and customizing the code to add that behavior.

Owen

Owen Evans
Lead Product Engineer | StoryMaps
TimWitt2
MVP Alum

Owen,

thanks for the answer, I was afraid that might be the case. Maybe in the distant distant distant future, the app team can add this functionality .

Thanks,

Tim

0 Kudos
OwenGeo
Esri Notable Contributor

Tim,

We are thinking about how we can add more capabilities around using sound/audio in the future, but we don't have any plans we can share about this at the moment. I've added your use case to our internal tracking system so we can use it when we consider options.

Thanks for the feedback!

Owen

Owen Evans
Lead Product Engineer | StoryMaps
TimWitt2
MVP Alum

I wonder if I can just add a website that I host, which plays the sound and then use the unload function once I scroll past it to stop the music.

Anyway, thanks for adding this to your tracking system.

0 Kudos
OwenGeo
Esri Notable Contributor

Tim -- yes, I did think of that before but then forgot to mention it in my reply! I believe the unload option should work if you can host your own page.

Owen

Owen Evans
Lead Product Engineer | StoryMaps
TimWitt2
MVP Alum

Owen Evans Just an update, I tried the approach with a website that autoplays audio and the "unload" checked. It did not work.

Once I scroll past it, it does stop the music but then the music starts again. I noticed the same behavior if I use a youtube video with autoplay turned on.

0 Kudos
TimWitt2
MVP Alum

Here is the example app: https://www.arcgis.com/apps/MapJournal/index.html?appid=c429bb4d2c7e4e128b655f032539b79c

As you can see the music starts playing immediately even though I am not at the section with the audio yet.

However in this app it works nicely. https://www.arcgis.com/apps/MapSeries/index.html?appid=4085cf5b49f34f44ae10b5f85aaa29ca

So I might have to switch to that layout. Do you know if there is an easy way to allow source code being added to this story map, like in the journal version?

0 Kudos