0 Replies Latest reply on Oct 18, 2013 2:30 PM by mieras

    Play button on iPad otherwise autoplay (with Buzz sound)

    mieras

      Hi,

       

      I'm working on a project with a timeline and voice over. I found a very handy script (buzz.js) which loads the audio file(s) (mp3, ogg, aac) and play the timeline when it's done loading. So everything cool till there. But on iOs / iPad it's impossible to autoplay audio.. So I was wondering if i'ts possible to show a play button when the user is using an Ipad and autoplay on other platforms / browsers...

       

      This is the script I'm using. (and I'm not really in to coding);

      http://outof.me/edge-animate-adding-sound-effects/

       

       

      var AudioVoiceOver = new buzz.sound ("audio/Verhaal1_Blz1", {formats: [ "mp3", "ogg", "aac"]});
                          AudioVoiceOver.bind  ('loadeddata', function(e) {
      
      
                          // playing the stage 
                          var stage = Edge.getComposition(compId).getStage();
                          stage.play();
      
      
                          // play sound
                          AudioVoiceOver.play();
                          });
      
      
      Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
         AudioVoiceOver.load();// insert code to be run when the composition is fully loaded here
      
      
      });
      //Edge binding end
      
      

       

      Hope someone can help.

       

      Cheers, M