From 478924a044f6a7b0fb5156c3e4a0e8ef4ed30a4a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Dec 2019 15:19:42 +0100 Subject: [PATCH] Add package.json for embed api --- client/package.json | 3 +-- client/src/standalone/player/README.md | 3 +++ client/src/standalone/player/package.json | 22 ++++++++++++++++++++++ package.json | 2 +- support/doc/api/embeds.md | 6 +++++- 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 client/src/standalone/player/README.md create mode 100644 client/src/standalone/player/package.json diff --git a/client/package.json b/client/package.json index 7a805ad17..53aedfebd 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": "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 index 000000000..5cb5a1d10 --- /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 000000000..a521515e5 --- /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 7580cefe4..5c12bd33c 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 3a35a539c..c2317a030 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.