Skip to main content
Craig Grummitt
Inspiring
May 21, 2008
Question

Security sandbox violation with SoundMixer

  • May 21, 2008
  • 2 replies
  • 976 views
I am using AS3 and FMS2.

Steps to recreate problem:

Step 1: I call SoundMixer.computerSpectrum frequently(on ENTER_FRAME) to update an EQ graph.
Step 2: I open and begin playing an RTMP stream.

As soon as I receive a 'NetStream.Play.Start' event on a NET_STATUS event on the stream, I begin receiving errors every time the SoundMixer.computeSpectrum line occurs. Here is the error:

SecurityError: Error #2123: Security sandbox violation: SoundMixer.computeSpectrum: file:///S|/audioplayer/dashboard.swf cannot access rtmp://localhost/audioplayer. No policy files granted access.

I have read in livedocs for flash media interactive server(FMS3) that there exists a property of the server side Client Object called 'audioSampleAccess' that can enable the flash player to access raw, uncompressed audio data from streams. This property doesn't exist in FMS2(i've tried to add the line in livedocs to my application.onConnect!).

My question is:

Is it possible to access audio data using AS3 SoundMixer on FMS2 streams?
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Craig Grummitt
    Inspiring
    May 21, 2008
    well. not what i wanted to hear but not to shoot the messenger, thanks fmslove for clearing that up for me. much appreciated.
    May 21, 2008
    Apparently, that was blocked as a security fix from flash player 9 onwards unless specified from FMS 3 server side script.