Skip to content

Commit

Permalink
Documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ferserc1 committed Aug 2, 2023
1 parent df1b402 commit bccf06d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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

Usin plugin context API:

```javascript
...
import getBasicPluginsContext from 'paella-basic-plugins';
Expand All @@ -16,6 +18,29 @@ let paella = new Paella('player-container', {
...
```

Using explicit plugin import API (paella-basic-plugins >= 1.41):

```javascript
...
import {
basicPlugins, // All plugins
FullscreenButtonPlugin // Independent plugin
} from 'paella-basic-plugins';

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

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

```json
Expand Down

0 comments on commit bccf06d

Please sign in to comment.