1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Don't send auth header to object storage

This commit is contained in:
Chocobozzz 2025-04-17 15:57:20 +02:00
parent 75c6fd9417
commit fbe794f9a4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 49 additions and 38 deletions

View file

@ -60,7 +60,7 @@ export class PeerTubeEmbed {
constructor (videoWrapperId: string) {
logger.registerServerSending(getBackendUrl())
this.http = new AuthHTTP()
this.http = new AuthHTTP(getBackendUrl())
this.videoFetcher = new VideoFetcher(this.http)
this.playlistFetcher = new PlaylistFetcher(this.http)
@ -220,7 +220,6 @@ export class PeerTubeEmbed {
return this.buildVideoPlayer({ videoResponse, captionsPromise, chaptersPromise, storyboardsPromise, forceAutoplay })
} catch (err) {
if (await this.handlePasswordError(err)) this.loadVideoAndBuildPlayer({ ...options })
else this.playerHTML.displayError(err.message, await this.translationsPromise)
}
@ -296,9 +295,8 @@ export class PeerTubeEmbed {
await this.peertubePlayer.load(loadOptions)
if (!this.alreadyInitialized) {
this.player = this.peertubePlayer.getPlayer();
(window as any)['videojsPlayer'] = this.player
this.player = this.peertubePlayer.getPlayer()
;(window as any)['videojsPlayer'] = this.player
this.buildCSS()
@ -465,7 +463,7 @@ export class PeerTubeEmbed {
PeerTubeEmbed.main()
.catch(err => {
(window as any).displayIncompatibleBrowser()
;(window as any).displayIncompatibleBrowser()
logger.error('Cannot init embed.', err)
})