Skip to main content
patriartist16
Participant
May 11, 2020
Question

20.0.3 soundStream script causing IE errors

  • May 11, 2020
  • 2 replies
  • 823 views

Since updating to 20.0.3, my published html5 files no longer work correctly in IE. I have created a simple 5 frame animation with a next and back button to navigate the frames. The error seems related to the new soundStream script and var keys. Here is a snippet of the new resulting code:

 

<script>
(function (cjs, an) {
var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
var rect; // used to reference frame bounds
lib.ssMetadata = [];
(lib.AnMovieClip = function(){
    this.currentSoundStreamInMovieclip;
    this.actionFrames = [];
    this.soundStreamDuration = new Map();
    this.streamSoundSymbolsList = [];
    this.gotoAndPlayForStreamSoundSync = function(positionOrLabel){
        cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
    }
    this.gotoAndPlay = function(positionOrLabel){
        this.clearAllSoundStreams();
        this.startStreamSoundsForTargetedFrame(positionOrLabel);
        cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
    }
    this.play = function(){
        this.clearAllSoundStreams();
        this.startStreamSoundsForTargetedFrame(this.currentFrame);
        cjs.MovieClip.prototype.play.call(this);
    }
    this.gotoAndStop = function(positionOrLabel){
        cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
        this.clearAllSoundStreams();
    }

 

 

 

The resulting html works fine in all other browsers and does not give an error but would jump to frame 2 and lock up. The issue seems to be related to the var keys here:


 

this.clearAllSoundStreams = function(){
this.soundStreamDuration.keys(); <- this line
for(var i = 0;i<this.soundStreamDuration.size; i++){
var key = keys.next().value;
key.instance.stop();
}
this.soundStreamDuration.clear();
this.currentSoundStreamInMovieclip = undefined;
}

 

 
Object doesn't support property or method 'keys'

 

After reading through this thread: https://community.adobe.com/t5/animate/occur-a-problem-during-testing-html-canvas-in-browser/m-p/11088225?page=1 I "dowgraded" to 20.0.2 which fixed my issues.

 

    This topic has been closed for replies.

    2 replies

    Legend
    May 22, 2020

    (reminds myself to make extra backups of the Animate 2018 installer)

    andylumb
    Participant
    May 21, 2020

    I'm having the same issue. Sound Streaming is an interesting feature, but it’s addition has added a chunk of code to all exported HTML files that include Canvas components, regardless of if this feature is being used.

    Unfortunately, this code is not IE 11 compatible.

     

    Specifically, it uses the following code, which is not supported by IE 11:

    var keys = this.soundStreamDuration.keys();

     

    Mohanaraj
    Adobe Employee
    Adobe Employee
    May 22, 2020

    Hi - We are investigating a fix for this issue and will update here as soon as I have more information on this.

     

    Thanks!

    Mohan

    andylumb
    Participant
    June 8, 2020

    Any progress / update on this?