Commit c26a756a authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh
Browse files

Youtube embed should not autoplay, this causes bad user experience when...

Youtube embed should not autoplay, this causes bad user experience when multiple videos are on a post
parent 108cd66a
......@@ -121,7 +121,7 @@ export function embedNode(child, links, images) {
* @returns {*}
*/
export function genIframeMd(idx, id, width, height, startTime = 0) {
const url = `https://www.youtube.com/embed/${id}?autoplay=1&autohide=1&enablejsapi=0&rel=0&origin=https://hive.blog&start=${startTime}`;
const url = `https://www.youtube.com/embed/${id}?enablejsapi=0&rel=0&origin=https://hive.blog&start=${startTime}`;
let sandbox = sandboxConfig.useSandbox;
if (sandbox) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment