1 Reply Latest reply on Oct 29, 2015 6:52 AM by mikebeargie

    How can I change the path of the sound file in web viewer ?

    semsisarac
      clock.innerHTML=alarmLabel + \"<embed src='file:///System/Library/Sounds/Glass.aiff' autostart='true' id='sound1'
      enablejavascript='true' width='0' height='0'>\";
      

       

      I'm using Windows..I have to change the path for an alarm application. Thanks in advance..

      Şemsi Saracoğlu

        • 1. Re: How can I change the path of the sound file in web viewer ?
          mikebeargie

          file URI scheme - Wikipedia, the free encyclopedia

           

          What file path are you trying to change it to? That looks like a mac file path, so you can add a windows one in filemaker like this:

          clock.innerHTML=alarmLabel + \"<embed src='" &

          Case (

               Get(SystemPlatform) = -2 ; "file:///C:/Windows/Media/Alarm01.wav" ; //Windows

               Get(SystemPlatform) = 1 ; "file:///System/Library/Sounds/Glass.aiff" ; //Mac

               Get(SystemPlatform) = 3 ; "" ; //something for iOS

               Get(SystemPlatform) = 4 ; "" ; //something for WebDirect

               "")

          & "' autostart='true' id='sound1' enablejavascript='true' width='0' height='0'>\";

           

          Better yet would be exporting your own alert sound file from a filemaker container field, and then passing that path in. That way you KNOW that the sound file will be where you placed it.