0.0.2 • Published 1 year ago

paella-iframe-plugin v0.0.2

Weekly downloads
-
License
SEE LICENSE IN li...
Repository
github
Last release
1 year ago

Paella Player iframe plugin

It contains iframe plugin for controling a embebed player.

Usage

Step 1: Import the plugin context and add it to the Paella Player initialization parameters:

Usin plugin context API:

...
import getIFramePluginsContext from 'paella-iframe-plugins';

let paella = new Paella('player-container', {
    customPluginContext: [
        getIFramePluginsContext()
    ]
});
...

Using explicit plugin import API:

...
import {
    allPlugins as iFramePlugins, // All plugins
    IFramePlugin      // Independent plugin
} from 'paella-iframe-plugin';

let paella = new Paella('player-container', {
    plugins: [
        ...iFramePlugins,    // All plugins
        { // One plugin
            plugin: IFramePlugin,
            config: {
                enabled: true
            }
        }
    ]
});
...

Step 2: Configure the plugins you want to use in the paella player configuration.

{
    "plugins": {
        ...
        "es.upv.paella.iFramePlugin": {
            "enabled": true,
            ...
        }
        ... other plugin settings
    }
}
0.0.2

1 year ago

0.0.1

1 year ago

1.48.0

1 year ago