Add plugin + onPlay method.

Miss comment and documentation for plugins.