Rename player embed api

This commit is contained in:
Chocobozzz 2023-07-10 16:08:53 +02:00
parent a1bd2b77d9
commit 8953f055c8
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
11 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import './embed.scss'
import * as Channel from 'jschannel'
import { logger } from '../../root-helpers'
import { PeerTubeResolution, PeerTubeTextTrack } from '../player/definitions'
import { PeerTubeResolution, PeerTubeTextTrack } from '../embed-player-api/definitions'
import { PeerTubeEmbed } from './embed'
/**

View File

@ -242,7 +242,10 @@ export class PeerTubeEmbed {
this.buildPlayerIfNeeded()
])
// If already played, we are in a playlist so we don't want to display the poster between videos
if (!this.alreadyPlayed) {
this.peertubePlayer.setPoster(window.location.origin + video.previewPath)
}
const playlist = this.playlistTracker
? {

View File

@ -1,6 +1,6 @@
import './test-embed.scss'
import { PeerTubeResolution, PlayerEventType } from '../player/definitions'
import { PeerTubePlayer } from '../player/player'
import { PeerTubeResolution, PlayerEventType } from '../embed-player-api/definitions'
import { PeerTubePlayer } from '../embed-player-api/player'
import { logger } from '../../root-helpers'
window.addEventListener('load', async () => {