Question

I'm attempting to use two SWF files to render, animate, and control the overlays for a video stream being produced in Open Broadcaster. The control panel SWF sits outside the application in a standalone projector, and the rendering .swf is placed inside the stream by adding it as the source media file for a plugin that uses CEF3 to create a browser window.

When these two files are in standalone media players, they communicate fine, however the setup described above is preventing this functionality from working properly. I know that both .swf files have all domains and insecure domains allowed, the CEF plugin is using the NPAPI Flash 12.0.0 player instead of the PPAPI 'pepper' player (which has additional security restrictions directly blocking LocalConnection), and I'm even able to socket with the rendering .swf and receive data through Monster Debugger. However, I'm at a loss as to how to step through what is preventing LocalConnection from communicating.

All of the guides and information I've found on this issue in regards to Chromium have been specifically about getting around the PPAPI restrictions, and state that the NPAPI should work fine. However, I'm concerned that the two layers of hosting (The CEF browser window and the Open Broadcaster app itself) is just not a scenario where this methodology is possible.

Was it helpful?

Solution

I found the solution to this: Adding the folder containing the .swf files to the Trusted Sources list inside Flash's Global Settings. Wasn't documented anywhere in relation to the security settings that effect LocalConnection so it wasn't an obvious fix. Once I did this, the files communicated fine.

The follow-up question is why this is required when one is inside CEF/OBS, and not when they're both in Standalone players, but I'll take the fact that it works for now. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top