[Smokescreen – iPad demo #1 – vimeo]
[Smokescreen – iPad demo – YouTube]
スゴいことになってきたものだ。純粋の JavaScript で書かれた Flash プレーヤだそうだ。
Simon Willison’s Weblog: “Smokescreen demo: a Flash player in JavaScript” by Simon Willison: 29 May 2010
* * *
Smokescreen
Chris Smoak の Smokescreen は驚くべきソフトだ。「JavaScript で書かれた Flash プレーヤ」なのだ。完全にブラウザ上で動く。SWF[Small Web Format の略、スウィフ:Adobe Flash の再生用ファイルフォーマットのひとつ]バイナリーを読み込み、ネイティブ JavaScript に解凍し、イメージと組み込みオーディオを復元し、base64 encoded data:uris に変換して、それからベクターグラフィックスをアニメーション SVG[Scalable Vector Graphics]につなぎ合わせる。デモの最中に Chrome Web Inspector で開いてみれば、リアルタイムで SVG が変化するのを見ることが出来る。Smokescreen は自らの ActionScript バイトコードインタプリタを実行することもできる。
Chris Smoak’s Smokescreen, “a Flash player written in JavaScript”, is an incredible piece of work. It runs entirely in the browser, reads in SWF binaries, unzips them (in native JS), extracts images and embedded audio and turns them in to base64 encoded data:uris, then stitches the vector graphics back together as animated SVG. Open up the Chrome Web Inspector while the demo is running and you can see the SVG changing in real time. Smokescreen even implements its own ActionScript bytecode interpreter.
* * *
iPad/iPhone で Flash バナーを動かす
もともとは、Flash のバナー広告を iPad や iPhone で動かす目的で始まった。しかしそのほかにも、ニュースサイト解説画像のような興味深い応用アプリがたくさん考えられる。この開発会社は、近い将来オープンソースにする計画であることを明らかにしている。
It’s stated intention is to allow Flash banner ads to execute on the iPad and iPhone, but there are plenty of other interesting applications (such as news site infographics). The company behind it have announced plans to open source it in the near future.
* * *
パフォーマンスが問題
目下の懸念はパフォーマンスだ。ライブラリは 175 KB で、JavaScript は 8000 行を超える。このため低消費電力のモバイルデバイスでは問題が生じるかもしれない。
My one concern is performance—the library is 175 KB and over 8,000 lines of JavaScript which might cause problems on low powered mobile devices.
* * *
Web 技術とは対極にあると思われていた Flash プレーヤが、HTML や JavaScript を使って処理できるというのはどういうことなのか、門外漢には詳しいことはよく分らない。
どうやらモバイル Web は何でもありらしい・・・
★ →[原文を見る:Original Text]
Technorati Tags: Chris Smoak, Flash, JavaScript, Smokescreen
[…] Smokescreen:JavaScript で書かれた Flash プレーヤ « maclalala2 […]
[…] Smokescreen:JavaScript で書かれた Flash プレーヤ « maclalala2 (tags: flash javascript iphone ipad) […]
はじめまして。ループスコミュニケーションズの岡村と申します。
昨日Smokescreenに関する記事を公開したのですが、今日になってSimon Willison’s Weblogの存在を知り、SWF⇒ネイティブJS変換について情報を探していたところこちらにたどり着きました。
Simonのブログを参考に追記したため、内容的にかなり重複してしまいましたが、Shiroさんの翻訳も参考にさせていただきました。
ここまでできるならなんでAdobeがサポートしないんだろう、ということもちょっと頭をよぎりますね。
> 岡村直人 さん
さすが専門家がご覧になると よく分るのですね
当方チンプンカンプンでしたが どうやら 目的地にたどり着くには ストレートな道だけでなく 遠回りだが迂回路もある ということなのでしょうか・・・