Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Typo when catching play promise

Chocobozzzde2c0de32abf
diff --git a/client/src/standalone/videos/embed-api.ts b/client/src/standalone/videos/embed-api.ts
index 9392765b46..c855de86b3 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)