multiple iFrames containing soundmanager2/page-player overlaps sound
I understand WHY this is happening, but is there a way to initialize soundmanger and page-player on the parent page (so there is only one), and have the sounds listed in multiple iFrames start and stop playing so that sounds from different iFrames do not play simultaneously?
Whewwww.....that was a mouthful, but it pretty much sums up what I am trying to do.
Whewwww.....that was a mouthful, but it pretty much sums up what I am trying to do.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?My first suspicion is that's not an option due to the way the page player script assumes soundManager is in the local frame/window context. The soundManager and flash object must be in the same window as well, preferably top level as Flash looks to reference soundManager as a global.
What would probably be easiest is to start with the SM2 page player demo on your primary frame, and then have it make calls to iframes where it loops through links etc. and controls/references them from the main window.
-
Inappropriate?I would think that another option would be to have the page player reference an instance of soundmanager on page load. Then when you load each frame it can check for the parent page and soundmanager. That way you only have to find the reference once per page load, and if no parent soundmanager exists, then load up the scripts on the local page and run it from there.
This method would have the added benefit that if you navigate away from the page in one of the iframes then the top level never has to know about it. The page can either look for a parent or won't, and no harm done.
In fact, this could probably be done with a little tweaking to the soundmanager init function so that you don't have to change all the references elsewhere. All you would need is to insert a little custom check for a parent page and parent soundmanager, if it then fails, it would automatically fall back on itself and create the flash object.
Loading Profile...



EMPLOYEE
