rainbowcreatures / FlashyWrappers

AIR / Flash video recording SDK
17 stars 10 forks source link

FW_SWFBridge_ffmpeg.swf tried to access incompatible context (AIR Desktop or iOS build) #19

Open kaksanya opened 7 years ago

kaksanya commented 7 years ago

Get this error when trying to launch the app in AIR Desktop mode or iOS debug mode. When switching to Web mode (Flash player) everything works fine.

The project is being launched on IDEA. Pure AS3. Flex sdk 4.14 air sdk 18. FWVideoEncoder with h264.

[trace] Security Sandbox Violation [trace] SecurityDomain 'file:///d:/MyApp/FW_SWFBridge_ffmpeg.swf?v=24' tried to access incompatible context 'app:/MyApp.swf' [Fault] exception, information=SecurityError: Error #2070: Security sandbox violation: caller file:///d:/MyApp/FW_SWFBridge_ffmpeg.swf?v=24 cannot access Stage owned by app:/MyApp.swf. at flash.display::Stage/get stageWidth() at com.rainbowcreatures::FWVideoEncoder/start() at com.rainbowcreatures.swf::FWVideoEncoder/start()[C:\wamp\www\flashywrappers_svn\FW_src_stable\FlasCC\SWFBridge\com\rainbowcreatures\swf\FWVideoEncoder.as:181] at Main/onStatus()[D:\MyApp\src\Main.as:84] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.rainbowcreatures.swf::FWVideoEncoder/onEncoderLoaded()[C:\wamp\www\flashywrappers_svn\FW_src_stable\FlasCC\SWFBridge\com\rainbowcreatures\swf\FWVideoEncoder.as:132]

rainbowcreatures commented 7 years ago

Are you using ANE's when launching in AIR Desktop / iOS. I see its trying to use SWFBridge_ffmpeg.swf which indicates you are using SWC, which you shouldn't do.