Skip to content

Commit

Permalink
New: Add Vimeo API
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Nov 30, 2023
1 parent 3c70135 commit 72aee9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ All packages from the PrettyEmbed series have the benefit of a better frontend p

#### JS API / Usage of youtube-nocookie.com

If you want to use the JavaScript API from youtube (e.g., for tracking), you have to enable set `enableJsApi` to `true`.
If you want to use the JavaScript API from YouTube or Vimeo (e.g., for tracking), you have to enable set `enableJsApi` to `true`.

```yaml
Jonnitto:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video.Fragment.Vimeo) < p
@apply.props = ${props}
}
content = afx`
<Jonnitto.PrettyEmbedHelper:Assets />
<Jonnitto.PrettyEmbedHelper:Assets vimeoAPI={props.enableJsApi} />
{props.playButton}
{props.content}
<img @if.set={!props.content} alt={props.alternativeText} src={props.poster} srcset={props.poster && props.poster2x ? props.poster + ' 1x,' + props.poster2x + ' 2x' : null} loading={props.loadImageStrategy} />
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
],
"require": {
"jonnitto/prettyembedhelper": "^4.2.3 || dev-master"
"jonnitto/prettyembedhelper": "^4.3 || dev-master"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 72aee9b

Please sign in to comment.