Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from stroeer/fix/correct-endcard-plugin-name
Browse files Browse the repository at this point in the history
correct to new plugin name (lowercase only)
  • Loading branch information
evaschmuhl authored Jun 23, 2022
2 parents 3c4a4d5 + 9ce06ca commit d5331c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The Stroeer Videoplayer Endcard Plugin works with data from a custom API but use
The Stroeer Videoplayer Endcard Plugin uses determined [data keys](https://github.com/stroeer/stroeer-videoplayer-plugin-endcard/blob/main/types/types.d.ts#L1). If these keys are named different in your API, you can map as many keys as you like via `dataKeyMap` in options object.

```javascript
myvideoplayer.initPlugin('Endcard', {
myvideoplayer.initPlugin('endcard', {
showEndcard: true,
dataKeyMap: {
// key of endcard, key from API
Expand Down Expand Up @@ -156,7 +156,7 @@ The only required data-attribute for the endcard to work is `data-endcard-url`.

```javascript
const myvideoplayer = new StroeerVideoplayer(video)
myvideoplayer.initPlugin('Endcard', {
myvideoplayer.initPlugin('endcard', {
revolverplayTime: 7,
dataKeyMap: {
image_large: 'preview_image',
Expand Down
4 changes: 2 additions & 2 deletions dev/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ video.addEventListener('contentVideoStart', function () {
console.log('playRound: ', playRound)
if (playRound === 3) {
console.log('DEINIT')
myvideoplayer.deinitPlugin('Endcard')
myvideoplayer.deinitPlugin('endcard')
}
})

Expand Down Expand Up @@ -83,7 +83,7 @@ const myvideoplayer = new StroeerVideoplayer(video)
myvideoplayer.loadStreamSource()
myvideoplayer.loadFirstChunk()

myvideoplayer.initPlugin('Endcard', {
myvideoplayer.initPlugin('endcard', {
revolverplayTime: 7,
dataKeyMap: {
// key of endcard, key from API
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "2.0.1",
"name": "@stroeer/stroeer-videoplayer-plugin-endcard",
"description": "Ströer Videoplayer Endcard Plugin",
"main": "dist/stroeerVideoplayer-endcard-plugin.umd.js",
Expand Down

0 comments on commit d5331c6

Please sign in to comment.