I am getting the following error when switching between a VideoElement and AudioElement:
SecurityError: Error #2123: Security sandbox violation: SoundMixer.computeSpectrum: http://myProject/bin-debug/assets/swf/modules/AudioPlayerModule.swf cannot access rtmp://myFMS.vitalstream.com:1935/myFMS_vitalstream_com/_definst_. No policy files granted access. at flash.media::SoundMixer$/computeSpectrum()
And I'm well aware that you cannot apply any sort of bitmap processing while an RTMP streamed video is present. So I'm wondering how I can go about clearing any references to that stream when I switch to the AudioElement. It seems to be keeping that VideoElement hidden in the background ...
Update: This does not happen when switching between a single VideoElement and AudioElement, but rather when two VideoElements are placed in a SerialElement (that have the same FMS address ) and the SerialElement switches to the AudioElement.
Is your AudioElement progressive or streaming? If the latter, does the stream come from the same FMS instance? If you can post a code snippet, it might help us to diagnose. In the absence of that two ideas to explore: