Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6365287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:16:28+00:00 2026-05-25T00:16:28+00:00

I have three different videos that I want to play at the same time.

  • 0

I have three different videos that I want to play at the same time.

<div class="videoWrapper">
    <video id="a" preload>
        <source src="http://www.dendrosite.com/interactiu/paranoik.mp4" />
        <source src="http://www.dendrosite.com/interactiu/paranoik.webm" />
    </video>
</div>
<div class="videoWrapper">
    <video id="b" preload>
        <source src="http://www.dendrosite.com/interactiu/paranoik.mp4" />
        <source src="http://www.dendrosite.com/interactiu/paranoik.webm" />
    </video>
</div>
<div class="videoWrapper">
    <video id="c" preload>
        <source src="http://www.dendrosite.com/interactiu/paranoik.mp4" />
        <source src="http://www.dendrosite.com/interactiu/paranoik.webm" />
    </video>
</div>

To make this possible I create a button which calls the videos, goes correctly, but I think is more correctly do this with JavaScript.

<button onclick="document.getElementById('a').pause(); document.getElementById('b').pause(); document.getElementById('c').pause()" ><span><img src="../imatges/pause.png"></span>
    Pause</button>

<button onclick="document.getElementById('a').play(); document.getElementById('b').play(); document.getElementById('c').play()"><img src="../imatges/play.png">
    Play</button>

<button onclick="document.getElementById('a').currentTime = 0; document.getElementById('b').currentTime = 0; document.getElementById('c').currentTime = 0"><img src="../imatges/back.png">Back to Beginning</button>

<button onclick="document.getElementById('a').currentTime += 5; document.getElementById('b').currentTime += 5; document.getElementById('c').currentTime += 5"><img src="../imatges/skip.png">
    Skip 5 Seconds</button>

The website is: http://www.dendrosite.com/interactiu/interactiu.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:16:29+00:00Added an answer on May 25, 2026 at 12:16 am

    Give each button an id, then in a .js file, assign each an onclick handler that contains the same code.

    New HTML:

    <button id="pauseButton"><span><img src="../imatges/pause.png"></span>Pause</button>
    
    <button id="playButton"><img src="../imatges/play.png">Play</button>
    
    <button id="restartButton"><img src="../imatges/back.png">Back to Beginning</button>
    
    <button id="skipButton"><img src="../imatges/skip.png">Skip 5 Seconds</button>
    

    Javascript:

    document.getElementById("pauseButton").onclick = function () {
        document.getElementById('a').pause();
        document.getElementById('b').pause();
        document.getElementById('c').pause();
    };
    
    document.getElementById("playButton").onclick = function () {
        document.getElementById('a').play();
        document.getElementById('b').play();
        document.getElementById('c').play();
    };
    
    document.getElementById("restartButton").onclick = function () {
        document.getElementById('a').currentTime = 0;
        document.getElementById('b').currentTime = 0;
        document.getElementById('c').currentTime = 0;
    };
    
    document.getElementById("skipButton").onclick = function () {
        document.getElementById('a').currentTime += 5;
        document.getElementById('b').currentTime += 5;
        document.getElementById('c').currentTime += 5;
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem is that I have three different stock sizes for each product that
I have three UILabel with different font and I want to put then on
I have around 10k video streams that I want to monitor. There's going to
I have a huge table (temporary) of different videos. Every video has a link
I am working on a video site that has different movies and videos which
I have video files, that I want to pad with a random number of
I want to have a repository of Url to music(audio and video) with different
I have three different List collections. How can I show them in one ListBox
I have three different configurations on my project, all three do not require all
I have three different development machines. Do I need three different iPhone Developer Program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.