Skip to content

Commit

Permalink
Upgrades and changes to README file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Miranda committed Aug 17, 2023
1 parent 3376744 commit c417b08
Show file tree
Hide file tree
Showing 5 changed files with 13,124 additions and 7,639 deletions.
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

Now you can play any YouTube videos using the awesome OpenPlayerJS!

## 🚨 IMPORTANT 🚨

### 🔧 This repository is in maintenance at this point. 🔧

No new features or addition will be added, only bugfixes.

## Installation

1. Set the video/audio as indicated in the [OpenPlayerJS installation](https://github.com/openplayerjs/openplayerjs#installation).
Expand All @@ -22,27 +28,30 @@ It allows you to override YouTube's configuration by using the `youtube` object
```html
<!DOCTYPE html>
<html lang="en">
<body>
<body>
<video class="op-player__media" id="video" controls playsinline>
<source src="https://www.youtube.com/watch?v=xcJtL7QggTI" type="video/x-youtube">
<source
src="https://www.youtube.com/watch?v=xcJtL7QggTI"
type="video/x-youtube"
/>
</video>
<script src="https://cdn.jsdelivr.net/npm/openplayerjs@latest/dist/openplayer.min.js"></script>
<script src="/path/to/openplayerjs-youtube.min.js"></script>
<script>
var player = new OpenPlayer('video', {
youtube: {
// config
}
});
player.init();
var player = new OpenPlayer("video", {
youtube: {
// config
},
});
player.init();
</script>
</body>
</body>
</html>
```

## A word about Privacy

This YouTube plug-in leverages the Google's YouTube Iframe API, which in turn will allow you to set a regular YouTube URL. However, this URL sets a tracking cookie by default (for marketing purposes).
This YouTube plug-in leverages the Google's YouTube Iframe API, which in turn will allow you to set a regular YouTube URL. However, this URL sets a tracking cookie by default (for marketing purposes).

This alone represents a compliance issue for the European General Data Protection Regulation (GDPR), and potentially for browsers with more strict privacy policies.

Expand Down
Loading

0 comments on commit c417b08

Please sign in to comment.