splitbee / react-notion

A fast React renderer for Notion pages
https://react-notion.com
MIT License
2.86k stars 151 forks source link

Allow autoplay control for embedded videos #52

Open parkdoeui opened 3 years ago

parkdoeui commented 3 years ago

Hi! I noticed that the rendered videos are being played automatically. Would it be possible to disable autoplay by default to match its behaviour with those from the original notion pages?

transitive-bullshit commented 3 years ago

Hey @DoParkEQ, this page has an example of what you're looking for: https://react-notion-x-demo.transitivebullsh.it/file-uploads-34d650c65da34f888335dbd3ddd141dc

tobiaslins commented 3 years ago

@DoParkEQ embedded youtube videos are not playing automatically. Custom uploaded videos are not supported by us. Can you please tell us which video source you've used?

Thanks :)

parkdoeui commented 3 years ago

@tobiaslins I was referring to a custom uploaded video. However, the same video does not play automatically in original Notion page.

YimoSheny commented 1 year ago

Hi, I encountered the same problem that the embedded videos are playing automatically everytime the Notion page is loaded. I was referring to videos from bilibili.com. Is there any way to avoid this?

yves219 commented 7 months ago

您好,我遇到了同樣的問題,每次加載 Notion 頁面時都會自動播放嵌入影片。我指的是來自bilibili.com的影片。有什麼辦法可以避免這種情況嗎? please add &autoplay=0 to IFRAME SRC.