mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 13:37:10 +03:00
Rename player embed api
This commit is contained in:
parent
a1bd2b77d9
commit
8953f055c8
@ -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'
|
||||
|
||||
/**
|
||||
|
@ -242,7 +242,10 @@ export class PeerTubeEmbed {
|
||||
this.buildPlayerIfNeeded()
|
||||
])
|
||||
|
||||
this.peertubePlayer.setPoster(window.location.origin + video.previewPath)
|
||||
// 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
|
||||
? {
|
||||
|
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user