Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    2
    Member #
    61060

    Issue in Integrating videos.

    Hello there, I am working on this website (https://www.freedomaddiction.ca/) and I have been integrating videos from YouTube. I have multiple videos on the same page. But the thing is, if I play one video without pausing the other, both of them are getting played simultaneously. Does anyone know what the issue is? Why is it not getting paused automatically when a new video is played? It would be great if someone can help me with your valuable suggestions. Thanks in advance

  2.  

  3. #2
    Junior Member
    Join Date
    Sep 2019
    Posts
    22
    Member #
    60934
    Liked
    8 times
    I'm not sure there is anything to do about that. YouTube videos don't care if there is another medium playing at the same time. If there is a way of solving this programmatically, it is well beyond my paygrade.

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,732
    Member #
    5580
    Liked
    718 times
    That happens on all sites that embed youtube videos.


  5. #4
    Junior Member
    Join Date
    Aug 2019
    Posts
    18
    Member #
    60927
    Liked
    4 times
    If you are using HTML5 I guess that you can control the video with Javascript.

    https://www.w3schools.com/html/html5_video.asp

    var myVideo = document.getElementById("video1");

    function playPause() {
    if (myVideo.paused)
    myVideo.play();
    else
    myVideo.pause();
    }
    Last edited by sibert; Oct 26th, 2019 at 01:13 AM.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:12 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com