+ 1
Command video with JavaScript
Actually i want to make "command video"( it means when user click the particular button then play the one video which I want to play ) As I made 5 different buttons with 5 different videos along "onclick function" But here is one problem is created that is this problem::(whenever I want to play another video then I just click the second button, second video is play but previous video is also playing simultaneously!) I want to make like this :: When i click the first button first video play, When i click the second button then second video is play and first video paused and so on.. Please tell me how can made this !!! This is my code:: https://code.sololearn.com/W8nZ4wXwkCsI/?ref=app
2 Respostas
+ 1
can you please also attach your code ??
+ 1
Ok ! I will provide.