Live data from Hacker News

Firefox Nightly now plays Amazon.com Flash videos using Shumway

mail.mozilla.org

11–20 of 109 posts

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#11
post #10
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

Just to clarify, Shumway converts/interprets/executes Flash files as HTML/HTML5? That is very cool, if so.

That is correct.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#12
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

Why Typescript, out of curiosity?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#13
Sounds like Shumway is already further along than Gnash or Lightspark.

What versions of SWF does Shumway aim to support? 7, 8, 9, 10, all of the above?

How does Shumway interact with click-to-play and similar mechanisms to stop unwanted Flash objects from playing? Does it have that functionality built-in?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#14
How do you go from swf files to "action script"? Do you use flasm/flare for as2? How do you turn as3 abc files into action script? Did you write your own decompiler or use some other open source ones? There's a disassembler written in D for as3 that I used to use called rabcdasm, did your team ever take a look at that?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#15
post #8
post #6

I'm waiting until they get JWPlayer working. So many sites still use it.

JWPlayer support is difficult because there are many JWPlayer variants and old versions out there. It's easier to test and whitelist individual websites to start.

Why bother emulating it, though? If you can recognize it, and recognize that it's not using any unusual settings, you could potentially just replace the whole thing with a native video player.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#16
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

Congratulations to the team on a promising start! There has been many attempts to implement free flash players, but none turned out to be usable in the real world. Maybe Mozilla has the perseverance to actually pull it off.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#17
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

Why Typescript, out of curiosity?

In part, the team just wanted to experiment with TypeScript. Also, the language is syntactically similar to AS3 so there is a close mapping from the AS3 library APIs to Shumway's TypeScript implementation.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#18
post #14

How do you go from swf files to "action script"? Do you use flasm/flare for as2? How do you turn as3 abc files into action script? Did you write your own decompiler or use some other open source ones? There's a disassembler written in D for as3 that I used to use called rabcdasm, did your team ever take a look at that?

> There's a disassembler written in D for as3 that I used to use called rabcdasm, did your team ever take a look at that?

RABCDAsm author here. Curious about the same, I've always thought the project might be useful to VM implementers. Also wondering if you've had trouble with obfuscators that employ control flow obfuscation, and create unreachable basic blocks with junk code.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#19

Sounds like Shumway is already further along than Gnash or Lightspark. What versions of SWF does Shumway aim to support? 7, 8, 9, 10, all of the above? How does Shumway interact with click-to-play and similar mechanisms to stop unwanted Flash objects from playing? Does it have that functionality built-in?

Considering this specifically states video and not flash in general I would imagine none of the above. Please correct me if i'm wrong though.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#20
post #14

How do you go from swf files to "action script"? Do you use flasm/flare for as2? How do you turn as3 abc files into action script? Did you write your own decompiler or use some other open source ones? There's a disassembler written in D for as3 that I used to use called rabcdasm, did your team ever take a look at that?

Shumway doesn't decompile ABC bytecode to ActionScript, it compiles it to JavaScript, which is then evaluated. It has a from-scratch JIT engine that analyzes the bytecode and generates JS.

https://github.com/mozilla/shumway/blob/master/src/avm2/comp...

I've worked a lot with Flash bytecode and contributed to Shumway a long time ago, so if you have any more questions, let me know!

Post reply on HN