# \[Perspective\] best way to play sound

**URL:** <https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702>\
**Category:** Ignition Early Access\
**Created:** [November 16, 2020, 6:26pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702 "2020-11-16T18:26:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [November 16, 2020, 6:26pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702/1 "2020-11-16T18:26:00Z")

</div>

Hi,

How would you set a Perspective view to play a sound fired by an event and that works in browser (any), mobile (on iPad) and workstation (any os)?  
I tried using video player but not reliable and on iPad, it won’t play without user touch.

Thanks,

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [November 16, 2020, 6:36pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702/2 "2020-11-16T18:36:58Z")

</div>

Have you tried [system.util.playSoundClip](https://docs.inductiveautomation.com/display/DOC81/system.util.playSoundClip)? It lists perspective sessions as in its scope.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 16, 2020, 6:51pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702/3 "2020-11-16T18:51:01Z")

</div>

`playSoundClip` won't work and that description is misleading at best. `playSoundClip` will _execute_ if called from Perspective - but the sound will be played from the gateway, not the local session.

There's a somewhat involved workaround involving an iframe on the forums - that's still probably your best option.

> [@\[feature-12986, 15300\]Unacknowledged Alarm Sound](http://forum.inductiveautomation.com/t/feature-12986-15300-unacknowledged-alarm-sound/25460/3):
>
> Use an invisible IFrame, and bind src to (don’t take this literally wink ): if(something = 1, 'http://path/to/some/noise.mp3', '' )

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 17, 2020, 3:58am UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702/4 "2020-11-17T03:58:25Z")

</div>

Any plan to add this in future release?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 17, 2020, 5:20pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-play-sound/40702/5 "2020-11-17T17:20:11Z")

</div>

Yes, there are open plans. I wouldn’t expect anything in the short term - we have to figure out how this would actually work, first.
