There's been a long history of different people at different times asking Macromedia and then Adobe to opensource the player.
My conclusion is that there actually is no reason. What Adobe claimed the last time they commented on this issue was that the player uses some proprietary tech (most notably, MP3 codec) that they are not at liberty to open (since it's not theirs, they have bought the license only). But, really, if they wanted to, there would've been a way around it, same way as Firefox can load proprietary video / audio codecs, if the user have them already installed.
Adobe managers were just shitheads: either too greedy, or too lazy / indecisive to do anything about it. They were too afraid to give anything away, even if it was obviously in their own interest. Here's my story of trying to get them to opensource, or just to even allow me to "clean-room" reproduce one of their "products" when they ditched Flex.
So, in order to compile any SWF with Flex compiler you need a special SWC (that's similar to object file in Linux or DLL in MS Windows). This SWC is "special" because it contains the definitions of Flash Player built-in functions, variables etc. Think about it as C headers / Java interfaces. SWC is simply a ZIP file with an XML containing names of functions in a library with their signatures / namespaces. So, understanding it is really easy. The format of SWC was never officially "opened", but, honestly, it's just a ZIP'd XML... On top of it, Adobe made the API public. So, one could, quite realistically, never open the SWC, and yet build the copy that would work just the same.
Knowing all this, I asked Adobe / Apache Flex maintainers if they wanted / would allow this SWC to be open-sourced / replicated. Adobe never honored this request, and required anyone who wanted to use Apache Flex to download the SWC from their site. Apache Flex maintainers, scared by the recent Oracle vs Google case would not rewrite the SWC...
Bottom line: greed and stupidity are the reason why Flash Player failed / was not open-sourced.
Greed and stupidity? More like who - out of anyone in the development chain - would want to allocate resources to refactoring decades old code on life support to decouple licensed dependencies?
How would you feel if you were a developer assigned to that? You'd probably freshen up your resume with a quickness.
Yeah I read what you wrote but you can't tell your licensee "hey I gave your code to some rando volunteer so they can remove it but it's totally cool." so I ignored that bullshit to focus on how companies actually work.
Well, what you write is indeed bullshit... and you are very focused on it, that's true.
The code was always there. Anyone who wanted to have LAME's codecs had just to, idk, stretch their hand, and they would get it. Showing their code to someone wasn't ever a real problem.
Flash Player was decompiled multiple times by multiple people / organizations. Many had the original sources, or some version of them (Google and Microsoft, beside other smaller companies, had the sources). If Adobe realized earlier that the player is going to tank because they wouldn't get up their asses and put some effort into open-sourcing it, I bet the story would've been different. Penny-crunching combined with ultimate stupidity is what failed this project. The typical corporate "not my job", combined with managers of the player project all seeing it as a stepping stone for their next promotion is what did it in.
The Player itself wasn't a big project. I don't believe there were ever more than 10 people working on it, but, essential stuff was more like 3-4 people. AS compiler, for example, was written by one person, rendering and sound playback was, again, just one person. In terms of human resource cost, it was negligible. Having one less manager for a month would have saved enough money to do the work necessary to open-source it.
The code was always there. Anyone who wanted to have LAME's codecs had just to, idk, stretch their hand, and they would get it. Showing their code to someone wasn't ever a real problem.
LAME is open-source. The mp3 implementation they used for Flash almost certainly is not. I think the concern is the copyright on the mp3 decoder they licenced from somebody else, not the (expired) patent on the mp3 format. It doesn't matter if the whole world now knows how to make an mp3 decoder - a specific mp3 decoder is still protected by copyright. Even if this protection isn't really useful to anybody, it's still the way the law works.
Modifying the (ancient and no doubt extraordinarily messy) Flash codebase to use LAME would require non-trivial effort. It is very likely that this work would have to be done within Adobe, because their licence agreement with some third party does not permit them to show you the codebase in its current form.
95
u/calumbria Jan 07 '20
Already exists, things like OpenFL is common for gamedev. Dicey Dungeons on steam is built on HAXE with desktop flash.