A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Audio does not play on Ipad - flash cc canvas project

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Wisconsin
    Posts
    181

    Audio does not play on Ipad - flash cc canvas project

    I'm using flash cc html5 project type. I built my project and tested on desktop and it works fine. Once test on ipad it does not play the audio. It works on android devices but not my ipad 4. I'm using Mp3 files in my flash project.

    I tried the safari & Chrome on my Ipad neither played the audio in my file.


    Links to my files.

    http://dev.wisc-online.com/prototype...405_html5.html

    http://dev.wisc-online.com/prototype...s3405_html5.js
    Josh
    Multimedia Programmer
    flashmajic.com

  2. #2
    Senior Member
    Join Date
    May 2005
    Location
    Wisconsin
    Posts
    181
    I was able to solve this issue but Created other issues.

    You have to play sound through code to get it to function on Ipad. Can no longer add audio to frames and extend timeline length of the audio.


    Code:
    createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.FlashAudioPlugin]);
    createjs.Sound.alternateExtensions = ["mp3"];
    createjs.Sound.registerSound("sounds/slide1_01.mp3", "page1");
    createjs.Sound.registerSound("sounds/slide2.mp3", "page2");
    createjs.Sound.registerSound("sounds/ending.mp3", "page3");
    
    var Vpage1 = createjs.Sound.play("page1");
    var Vpage2 = createjs.Sound.play("page2");
    var Vpage3 = createjs.Sound.play("page3");
    
    
    this.Next.addEventListener("click", fl_ClickToGoToAndStopAtFrame_7.bind(this));
    
    function fl_ClickToGoToAndStopAtFrame_7() {
    	createjs.Sound.stop();
    
    	this.gotoAndStop(1);
    //plays my sound
    	Vpage2.play();
    }
    Josh
    Multimedia Programmer
    flashmajic.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center