diff --git a/client/src/standalone/videos/embed-api.ts b/client/src/standalone/videos/embed-api.ts index 9392765b4..c855de86b 100644 --- a/client/src/standalone/videos/embed-api.ts +++ b/client/src/standalone/videos/embed-api.ts @@ -46,7 +46,7 @@ export class PeerTubeEmbedApi { channel.bind('play', (txn, params) => { const p = this.player.play() - if (p) return + if (!p) return p.catch((err: Error) => { console.error('Cannot play the video', err)