4 Replies Latest reply on Aug 8, 2017 1:32 AM by Joydeep Chakraborty

    How to play sound on Mk3100 with Enterprise Browser (Webkit)

    Frederic Neuberg

      Hello,

       

      My objective is simple, I want to play sound when I touch a hard kiosk button.

       

      I tried to copies every sound in different directories for test…

      I tried a lot of possibilities, but I never got any sound....

       

       

      Ex :

      try {

            EB.Mediaplayer.start("file:///Application/decode.wav");

           }

      catch (e3) {

                     alert("Error - 1...");

      }

       

      I suppose the problem is probably

           - sound wav location

           - sound wav définition in Mediaplayer command : ? file:///App... ?

           -

       

      Ps :

      I respect the case sensitive « wav » name.

      If I click on sound wave file, it's played...

      When os starting, the windows « welcome » sound is playing correctly.

      In Volume & sounds Panel :

        • Events sound : enable
        • Application sound : enable
        • Notification sound : enable
        • Key click : disable
        • Scree taps : disable

      The (EB.) ebapi-modules.js reference is correct : Scan events are triggered.

       

      Enterprise Browser :

                      Version 1.6 or 1.7  (Same problem)

                      Licence : OK

                      Engine : Webkit               

       

      MK3100 : (Windows CE7)

                       Os Version : 07.00.2824

                      OEM Name : Symbol MK3100

                      OEM Version : 01.47.30

       

      Thank you in advance for your help. I am looking forward hearing from you.

        • Re: How to play sound on Mk3100 with Enterprise Browser (Webkit)
          Darryn Campbell

          Hi,

           

          Did you try "\Application\decode.wav" (with back slashes?)

          Also might be worth trying "file://\Application\decode.wav".

           

          I notice there is no return values from the start() method but does that exception ever get thrown?  I suspect not but do you see anything in the log file which could indicate the issue?  I share your suspicion that this is related to the sound file location.

            • Re: How to play sound on Mk3100 with Enterprise Browser (Webkit)
              Frederic Neuberg

              Thanks,

               

              With EB.Mediaplayer, I never got any sound and error.

               

              But, with the Generic Preexisting JavaScript Object , it's good (Thanks Joydeep)

               

                                  alert("Decode 1");

                                      try {

               

                                             generic.PlayWave('\\Application\\decode.wav', 1); ---> Ok

                

                                         //   EB.Mediaplayer.start("file:///Application/decode.wav");

                                           }

                                      catch (e3) {

                                           alert("Error - 1...");

                                      }

                                     

                                     

                                      alert("Decode 2");

                                      try {

                                            EB.Mediaplayer.start("file://\Application\decode.wav");

                                           }

                                      catch (e3) {

                                           alert("Error - 1...");

                                      }

                                                             

                                     

                                      alert("Decode 3");

                                      try {

                                            EB.Mediaplayer.start('file:\Application\decode.wav');

                                           }

                                      catch (e3) {

                                           alert("Error - 1...");

                                      }

                                     

                                     

                                      alert("Decode 4");

                                      try {

                                            EB.Mediaplayer.start('file:\Application\decode.wav');

                                           }

                                      catch (e3) {

                                           alert("Error - 1...");

                                      }

                • Re: How to play sound on Mk3100 with Enterprise Browser (Webkit)
                  Joydeep Chakraborty

                  EB MediaPlayer API depends on the availibility of the Mediaplayer application in the Operating system. Most of the Windows Mobile devices have them onbuilt. Some CE devices may not have them. That is why this is not working.

                   

                  Please see the mediaplayer documentation.

                   

                   

                   

                  Playback Controls

                  Because the MediaPlayer extension uses the operating system's built-in player for some media types, the playback controls available to the user are outside the control of RhoElements. Some players may have no playback controls in which the user will have to wait for the media to finish playing.