Embedderクラス
- Embedder クラスはめんどくさい Embed の処理を気持ち楽にしてくれるクラスです。
コード
サンプル
Embedder が対応しているファイル。
ファイルタイプ
- イメージ(mimeType は省略できる)
- Flash(mimeType は省略できる)
- オーディオ(mimeType は省略できる)
- フォント(mimeType は省略できる)
- その他(mimeType は省略できない(XML を除く))
イメージ
- GIF (mimeType = 'image/gif')
- JPG, JPEG (mimeType = 'image/jpeg')
- PNG (mimeType = 'image/png')
- SVG (mimeType = 'image/svg' or 'image/svg-xml')
Flash
- SWF (mimeType = 'application/x-shockwave-flash')
オーディオ
- MP3 (mimeType = 'audio/mpeg')
フォント
- TTF, OTF, TTC(trueTypeFont) (mimeType = 'application/x-font-truetpe')
- FON(システムフォント) (mimeType = 'application/x-font')
その他
- XML
- その他は mimeType = 'application/octet-stream' などで Embed する。