今日のひとこと Challange IT For Future

PPAPI

Tech 読了 2分

この記事は最終更新から 14 年以上たっています。内容が現在の状況と異なる可能性があります。現在の情報は最新の記事、Fess の記事をご覧ください。

Linux版のFlashがChromeが採用しているPPAPI以外は終了ということで、ちょっと見てみる。PPAPI自体はChrome専用というわけではなく、クロスプラットフォームのブラウザ用プラグインのAPIだそうな。Getting Startedにもあるけど、実装自体は簡単そう。Cであれば

  • PPP_InitializeModule which is called on startup and returns 0 on success.
  • PPP_ShutdownModule which is called on shutdown.
  • PPP_GetInterface which is called when a new plugin instance is created for a page.

C++だと

  • pp::CreateModule which is the factory function for your plugin’s specific pp::Module implementation.
  • A specialization of pp::Module that implements CreateInstance, which is in turn the factory function for your plugin’s specificpp::Instance implementation.
  • A specialization of pp::Instance which represents one plugin on a web page.

とのこと。どっちかというと、C++の方が実装しやすいのかも。