Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add package.json for embed api

Chocobozzz478924a044f6
diff --git a/client/package.json b/client/package.json
index 7a805ad178..53aedfebd1 100644
--- a/client/package.json
+++ b/client/package.json
@@ -2,7 +2,7 @@
"name": "peertube-client",
"version": "2.0.0",
"private": true,
- "licence": "GPLv3",
+ "license": "AGPL-3.0",
"author": {
"name": "Chocobozzz",
"email": "[email protected]",
@@ -22,7 +22,6 @@
"webdriver-manager": "webdriver-manager",
"ngx-extractor": "ngx-extractor"
},
- "license": "GPLv3",
"typings": "*.d.ts",
"resolutions": {
"video.js": "^7",
diff --git a/client/src/standalone/player/README.md b/client/src/standalone/player/README.md
new file mode 100644
index 0000000000..5cb5a1d10e
--- /dev/null
+++ b/client/src/standalone/player/README.md
@@ -0,0 +1,3 @@
+# @peertube/embed-api
+
+See https://docs.joinpeertube.org/#/api-embed-player
diff --git a/client/src/standalone/player/package.json b/client/src/standalone/player/package.json
new file mode 100644
index 0000000000..a521515e58
--- /dev/null
+++ b/client/src/standalone/player/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "@peertube/embed-api",
+ "version": "1.0.0",
+ "description": "API to communicate with the PeerTube player embed",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Chocobozzz/PeerTube.git"
+ },
+ "keywords": [
+ "peertube",
+ "embed"
+ ],
+ "author": "Chocobozzz",
+ "license": "AGPL-3.0",
+ "bugs": {
+ "url": "https://github.com/Chocobozzz/PeerTube/issues"
+ },
+ "homepage": "https://github.com/Chocobozzz/PeerTube#readme"
+}
diff --git a/package.json b/package.json
index 7580cefe48..5c12bd33c8 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"description": "Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.",
"version": "2.0.0",
"private": true,
- "licence": "AGPLv3",
+ "licence": "AGPL-3.0",
"engines": {
"node": ">=8.x"
},
diff --git a/support/doc/api/embeds.md b/support/doc/api/embeds.md
index 3a35a539c1..c2317a0309 100644
--- a/support/doc/api/embeds.md
+++ b/support/doc/api/embeds.md
@@ -119,4 +119,8 @@ Fired when playback transitions between states, such as `pausing` and `playing`.
## Event `resolutionUpdate`
-Fired when the available resolutions have changed, or when the currently selected resolution has changed. Listener should call `getResolutions()` to get the updated information.
\ No newline at end of file
+Fired when the available resolutions have changed, or when the currently selected resolution has changed. Listener should call `getResolutions()` to get the updated information.
+
+## Event `volumeChange`
+
+Fired when the player volume changed.