Flash is on its way to the grave so forget about it. For video we have video tag. JavaScript decoding is needed only as a fallback for crippled browsers. I'd like to see a decent VP8 decoder in JavaScript, but for mobile it's too bad though. Performance will be too inferior, since hardware decoding will always be faster.