How to stop all videos when one played? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to stop all videos when one played?

Hello everyone, who can help me to designing two (or more) videos in web that when i played one, the other (or all of them) will stop and vice versa? Thanks,

20th Jan 2019, 6:02 PM
Aram
Aram - avatar
4 Answers
+ 1
I don't think you have such ability with YouTube but try searching for a way to pause a video or specifically YouTube video and a way to check if a video is played.
21st Jan 2019, 7:02 AM
Eldar Bakerman
+ 1
Eldar Bakerman i know that but i want some code to do that work. I think so JavaScript do it. Can you give me the code or advice me to get it? Thank you,
23rd Jan 2019, 8:28 PM
Aram
Aram - avatar
+ 1
I doubt in fact that you are able to stop a YouTube video using JS.
26th Jan 2019, 1:56 PM
Eldar Bakerman
0
Eldar Bakerman I'm not good in JS, hahaha but i have able to stop a YouTube video:). However, thank you for your answers.
26th Jan 2019, 2:32 PM
Aram
Aram - avatar