Add package.json for embed api

This commit is contained in:
Chocobozzz 2019-12-17 15:19:42 +01:00
parent 6377a9f2b0
commit 478924a044
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 32 additions and 4 deletions

View File

@ -2,7 +2,7 @@
"name": "peertube-client", "name": "peertube-client",
"version": "2.0.0", "version": "2.0.0",
"private": true, "private": true,
"licence": "GPLv3", "license": "AGPL-3.0",
"author": { "author": {
"name": "Chocobozzz", "name": "Chocobozzz",
"email": "chocobozzz@cpy.re", "email": "chocobozzz@cpy.re",
@ -22,7 +22,6 @@
"webdriver-manager": "webdriver-manager", "webdriver-manager": "webdriver-manager",
"ngx-extractor": "ngx-extractor" "ngx-extractor": "ngx-extractor"
}, },
"license": "GPLv3",
"typings": "*.d.ts", "typings": "*.d.ts",
"resolutions": { "resolutions": {
"video.js": "^7", "video.js": "^7",

View File

@ -0,0 +1,3 @@
# @peertube/embed-api
See https://docs.joinpeertube.org/#/api-embed-player

View File

@ -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"
}

View File

@ -3,7 +3,7 @@
"description": "Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.", "description": "Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.",
"version": "2.0.0", "version": "2.0.0",
"private": true, "private": true,
"licence": "AGPLv3", "licence": "AGPL-3.0",
"engines": { "engines": {
"node": ">=8.x" "node": ">=8.x"
}, },

View File

@ -120,3 +120,7 @@ Fired when playback transitions between states, such as `pausing` and `playing`.
## Event `resolutionUpdate` ## 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. 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.