Add package.json for embed api
authorChocobozzz <me@florianbigard.com>
Tue, 17 Dec 2019 14:19:42 +0000 (15:19 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 18 Dec 2019 09:14:24 +0000 (10:14 +0100)
client/package.json
client/src/standalone/player/README.md [new file with mode: 0644]
client/src/standalone/player/package.json [new file with mode: 0644]
package.json
support/doc/api/embeds.md

index 7a805ad1784ca2ab2fd88d353c3f1bf7017e2c50..53aedfebd17d8e428faca325b96fb08d7716a66e 100644 (file)
@@ -2,7 +2,7 @@
   "name": "peertube-client",
   "version": "2.0.0",
   "private": true,
-  "licence": "GPLv3",
+  "license": "AGPL-3.0",
   "author": {
     "name": "Chocobozzz",
     "email": "chocobozzz@cpy.re",
@@ -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 (file)
index 0000000..5cb5a1d
--- /dev/null
@@ -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 (file)
index 0000000..a521515
--- /dev/null
@@ -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"
+}
index 7580cefe48f3611f6bd8b1fcea796b1c07332060..5c12bd33c8878e60daffd5623033afe6e258daa0 100644 (file)
@@ -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"
   },
index 3a35a539c1d99d49d3d0ef87d63bad8453aea824..c2317a0309aec4daafd0b242ef49c397b8f01dee 100644 (file)
@@ -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.