Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 758 Bytes

Plug-Ins.md

File metadata and controls

32 lines (17 loc) · 758 Bytes

Plugin System

(Early test , API may change)

Get Start

  1. download the repo ( see HOW_TO_BUILD )
  2. Open VideoPolymer.xcworkspace and locate to PluginExample.xcodeproj
  3. Edit / Run

Info.plist

  • Inject Javascript on domain

Must be top level domain (example: youku.com)

  • Inject Javascript file prefix

If set to "FILE" , will load Plugin.bundle/Contents/Resources/FILE.js

  • Principal class

Main class of plugin , must inherit "VP_Plugin"

Code

See ExamplePlugin in workspace

Code Signing

Plugin need valid codesign from Apple or me (plugin/TYPCN_Root_G3.crt) , you can submit plugin to Plugin Store( coming soon ) , the server will sign it automaticly.