]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix live ending banner
authorChocobozzz <me@florianbigard.com>
Tue, 25 May 2021 13:27:43 +0000 (15:27 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 25 May 2021 13:27:43 +0000 (15:27 +0200)
client/src/app/+videos/+video-watch/video-watch.component.ts
client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts

index 1c510d6b0487f41e9c91ddd2db3d7241ad655406..116139d473e372fa39db69415c3914904b069904 100644 (file)
@@ -674,7 +674,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
 
       this.player.one('ended', () => {
         if (this.video.isLive) {
-          this.video.state.id = VideoState.LIVE_ENDED
+          this.zone.run(() => this.video.state.id = VideoState.LIVE_ENDED)
         }
       })
 
index 93ba9fb9bc3a39c8e659c595d68b7eb406b9d4ba..4d5381e8db57c11e5b23ffd51b4367ec227944e6 100644 (file)
@@ -3,7 +3,8 @@ import { PluginElementPlaceholder } from '@shared/models'
 
 @Component({
   selector: 'my-plugin-placeholder',
-  template: '<div [id]="getId()"></div>'
+  template: '<div [id]="getId()"></div>',
+  styles: [ 'div { height: 100%; }' ]
 })
 
 export class PluginPlaceholderComponent {