simultaneous playback of only one youtube video #2996
-
Is it possible to stop the youtube video being played when another one is turned on? It's about a situation where there are several youtube videos on the page. How can I get to the youtube player API? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's possible only if we use the api, currently we are using iframe to provide a tiny component, but yes we may support the feature you want if we import the iframe api. i believe it's possible for you to do that yourself by writing extra code in your markdown file and provide id or class for videos in page to reference them with css selector. Further discussion is welcomed, but I need the gzip/origin size of the extra api chunk(performance consideration), and see if we can import it later in onMounted liftcycle without affecting current video play. |
Beta Was this translation helpful? Give feedback.
It's possible only if we use the api, currently we are using iframe to provide a tiny component, but yes we may support the feature you want if we import the iframe api. i believe it's possible for you to do that yourself by writing extra code in your markdown file and provide id or class for videos in page to reference them with css selector.
Further discussion is welcomed, but I need the gzip/origin size of the extra api chunk(performance consideration), and see if we can import it later in onMounted liftcycle without affecting current video play.