aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-10 16:08:53 +0200
committerChocobozzz <me@florianbigard.com>2023-07-10 16:08:53 +0200
commit8953f055c86ca74f145d7ac5ac93bb6104d73af9 (patch)
tree4fd67ba6c2ba32f45bcc92e931cffe2fa57c12a4 /client
parenta1bd2b77d99cec5c27d38501f5f12f9dc339de17 (diff)
downloadPeerTube-8953f055c86ca74f145d7ac5ac93bb6104d73af9.tar.gz
PeerTube-8953f055c86ca74f145d7ac5ac93bb6104d73af9.tar.zst
PeerTube-8953f055c86ca74f145d7ac5ac93bb6104d73af9.zip
Rename player embed api
Diffstat (limited to 'client')
-rw-r--r--client/src/standalone/embed-player-api/.npmignore (renamed from client/src/standalone/player/.npmignore)0
-rw-r--r--client/src/standalone/embed-player-api/README.md (renamed from client/src/standalone/player/README.md)0
-rw-r--r--client/src/standalone/embed-player-api/definitions.ts (renamed from client/src/standalone/player/definitions.ts)0
-rw-r--r--client/src/standalone/embed-player-api/events.ts (renamed from client/src/standalone/player/events.ts)0
-rw-r--r--client/src/standalone/embed-player-api/package.json (renamed from client/src/standalone/player/package.json)0
-rw-r--r--client/src/standalone/embed-player-api/player.ts (renamed from client/src/standalone/player/player.ts)0
-rw-r--r--client/src/standalone/embed-player-api/tsconfig.json (renamed from client/src/standalone/player/tsconfig.json)0
-rw-r--r--client/src/standalone/embed-player-api/webpack.config.js (renamed from client/src/standalone/player/webpack.config.js)0
-rw-r--r--client/src/standalone/videos/embed-api.ts2
-rw-r--r--client/src/standalone/videos/embed.ts5
-rw-r--r--client/src/standalone/videos/test-embed.ts4
11 files changed, 7 insertions, 4 deletions
diff --git a/client/src/standalone/player/.npmignore b/client/src/standalone/embed-player-api/.npmignore
index 870b6315b..870b6315b 100644
--- a/client/src/standalone/player/.npmignore
+++ b/client/src/standalone/embed-player-api/.npmignore
diff --git a/client/src/standalone/player/README.md b/client/src/standalone/embed-player-api/README.md
index 7b47e8f02..7b47e8f02 100644
--- a/client/src/standalone/player/README.md
+++ b/client/src/standalone/embed-player-api/README.md
diff --git a/client/src/standalone/player/definitions.ts b/client/src/standalone/embed-player-api/definitions.ts
index 495f1a98c..495f1a98c 100644
--- a/client/src/standalone/player/definitions.ts
+++ b/client/src/standalone/embed-player-api/definitions.ts
diff --git a/client/src/standalone/player/events.ts b/client/src/standalone/embed-player-api/events.ts
index 77d21c78c..77d21c78c 100644
--- a/client/src/standalone/player/events.ts
+++ b/client/src/standalone/embed-player-api/events.ts
diff --git a/client/src/standalone/player/package.json b/client/src/standalone/embed-player-api/package.json
index b549fbf52..b549fbf52 100644
--- a/client/src/standalone/player/package.json
+++ b/client/src/standalone/embed-player-api/package.json
diff --git a/client/src/standalone/player/player.ts b/client/src/standalone/embed-player-api/player.ts
index 75487258b..75487258b 100644
--- a/client/src/standalone/player/player.ts
+++ b/client/src/standalone/embed-player-api/player.ts
diff --git a/client/src/standalone/player/tsconfig.json b/client/src/standalone/embed-player-api/tsconfig.json
index eecc63dfb..eecc63dfb 100644
--- a/client/src/standalone/player/tsconfig.json
+++ b/client/src/standalone/embed-player-api/tsconfig.json
diff --git a/client/src/standalone/player/webpack.config.js b/client/src/standalone/embed-player-api/webpack.config.js
index 48d350edf..48d350edf 100644
--- a/client/src/standalone/player/webpack.config.js
+++ b/client/src/standalone/embed-player-api/webpack.config.js
diff --git a/client/src/standalone/videos/embed-api.ts b/client/src/standalone/videos/embed-api.ts
index cdda122b2..6227c378e 100644
--- a/client/src/standalone/videos/embed-api.ts
+++ b/client/src/standalone/videos/embed-api.ts
@@ -1,7 +1,7 @@
1import './embed.scss' 1import './embed.scss'
2import * as Channel from 'jschannel' 2import * as Channel from 'jschannel'
3import { logger } from '../../root-helpers' 3import { logger } from '../../root-helpers'
4import { PeerTubeResolution, PeerTubeTextTrack } from '../player/definitions' 4import { PeerTubeResolution, PeerTubeTextTrack } from '../embed-player-api/definitions'
5import { PeerTubeEmbed } from './embed' 5import { PeerTubeEmbed } from './embed'
6 6
7/** 7/**
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 5c68aaaf2..78b812ffd 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -242,7 +242,10 @@ export class PeerTubeEmbed {
242 this.buildPlayerIfNeeded() 242 this.buildPlayerIfNeeded()
243 ]) 243 ])
244 244
245 this.peertubePlayer.setPoster(window.location.origin + video.previewPath) 245 // If already played, we are in a playlist so we don't want to display the poster between videos
246 if (!this.alreadyPlayed) {
247 this.peertubePlayer.setPoster(window.location.origin + video.previewPath)
248 }
246 249
247 const playlist = this.playlistTracker 250 const playlist = this.playlistTracker
248 ? { 251 ? {
diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts
index b34df11ee..b7a283c4d 100644
--- a/client/src/standalone/videos/test-embed.ts
+++ b/client/src/standalone/videos/test-embed.ts
@@ -1,6 +1,6 @@
1import './test-embed.scss' 1import './test-embed.scss'
2import { PeerTubeResolution, PlayerEventType } from '../player/definitions' 2import { PeerTubeResolution, PlayerEventType } from '../embed-player-api/definitions'
3import { PeerTubePlayer } from '../player/player' 3import { PeerTubePlayer } from '../embed-player-api/player'
4import { logger } from '../../root-helpers' 4import { logger } from '../../root-helpers'
5 5
6window.addEventListener('load', async () => { 6window.addEventListener('load', async () => {