Skip to content

Commit

Permalink
docs: remove crossorigin attribute from video-js tag from examples
Browse files Browse the repository at this point in the history
Removes the `crossorigin="anonymous"` attribute from the <video-js> tag in the examples because
we were experiencing issues with cross-origin media. This change ensures that integrators
won't encounter the same error.
  • Loading branch information
jboix committed Jun 6, 2024
1 parent c351bfc commit b64bd45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ npm install --save @srgssr/pillarbox-web
In your HTML file, add the following code to initialize Pillarbox:

```html
<video-js id="my-player" class="pillarbox-js" controls crossorigin="anonymous"></video-js>

<video-js id="my-player" class="pillarbox-js" controls></video-js>
```

Import the CSS file in your HTML to apply Pillarbox default theme:

```html

<link rel="stylesheet" href="node_modules/@srgssr/pillarbox-web/dist/pillarbox.min.css"/>
```

Expand Down
3 changes: 1 addition & 2 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ npm install --save @srgssr/pillarbox-web
In your HTML file, add the following code to initialize Pillarbox:

```html

<video-js id="my-player" class="pillarbox-js" controls crossorigin="anonymous"></video-js>
<video-js id="my-player" class="pillarbox-js" controls></video-js>
```

Import the CSS file in your HTML to apply Pillarbox default theme:
Expand Down

0 comments on commit b64bd45

Please sign in to comment.