Okay
  Public Ticket #1998709
Background Music Bug
Closed

Comments

  • Marvin started the conversation

    Dear ClaPat-Team.

    There is a bug in connection with the background music function. When using your (or any other) Video plugin, the end user hears both audio tracks at the same time. Can you please tell me how to (automatically) pause the background music for the duration of the video?

    Thank You very much for your Help and have a nice Weekend.

    Regards 
    Marvin

  •  1,823
    Support replied

    Hello Marvin,

    we recommend adding muted videos when you have background music enabled.

    However - this is custom work we can do it for a fee if you are interested.

    if you want to give it a shot:

    in /js/scripts.js you will have to modify this bit in function PlayVideo()

    var playpause = function( videoObj ) {

    if( videoObj[0] != null ){
    if(videoObj[0].paused || videoObj[0].ended) {

    videoObj.parent().addClass('play');
    videoObj[0].play();
    }
    else {

    videoObj.parent().removeClass('play');
    videoObj[0].pause();
    }
    }
    };

    so that when played(or paused) will stop/pause the sound of the background music

    Easiest is to enumerate audio elements in the page

    $('audio').each( function(){

         mute/unmute the audio background here

    });


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Marvin replied privately
  •   Support replied privately
  •   Marvin replied privately
  •   Support replied privately
  •   Marvin replied privately
  •  1,823
    Support replied

    Hello Marvin,

    It's not that we cannot do like you said except that we need to do also a bit of debugging. So I guess the best is to upload the site somewhere online so we can work on it.

    if this is not possible, we will send you a version of the theme with modifications and you can do the code merge. Is this the best way? Let us know.

    We do not charge you only after the work is done and you okayed it.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Marvin replied privately
  •  1,823
    Support replied

    Ok Marvin, we will proceed then - we will send you the files until this wknd, the latest.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Support replied privately
  •   Marvin replied privately
  •   Marvin replied privately
  •  1,823
    Support replied

    Hi Marvin, thanks, we will process your ticket tomorrow.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1,823
    Support replied

    Still working on it.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1,823
    Support replied

    Hello Marvin, 

    sorry for the delay here is the new version of the scripts.js we solved all the issues you enumerated but we do not recommend to start the background music when video ENDS.

    Plz test and don't forget to hard refresh the page (Ctrl+F5)

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Support replied privately
  •   Marvin replied privately
  •   Support replied privately
  •   Marvin replied privately
  •   Support replied privately
  •   Marvin replied privately
  •   Marvin replied privately
  •   Support replied privately