Mute/Unmute Issue

clewis2107
clewis2107 Community Member Posts: 43
I have a placeholder audio file for voice-over and I use an Action set on each page set to

Trigger: On Show
Action: Change Contents
Target: Placeholder Audio file
Resource: mypagevo.mp3

Works great playing the audio, but my button to mute/unmute have no impact.

If I place the audio on the page level, the mute/ummute works.

Ideas?

- Chuck

Comments

  • ssneg
    ssneg Community Member Posts: 1,466 ☆ Roadie ☆
    I could not replicate this in v16.0.2, it works as expected.
  • clewis2107
    clewis2107 Community Member Posts: 43
    I will package up an example in a bit.
  • timk
    timk Community Member Posts: 1,207 ♦ Idol ♦
    I can replicate the issue. The "Mute media" action doesn't work if the audio is on title level. There seems to be a difference in the two Mute actions.

    Code of the Mute action if the audio is on page level:
    function action96(fn){
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    Code of the action if the audio is on title level:
    function action96(fn){
    VarTriMuteAllFLV.set('1');
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    ... the "updateFLVPlayer()" part is missing.

    If i run
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);

    in a "Run javascript" action it's muting the audio on title level as well.
    Tim
  • clewis2107
    clewis2107 Community Member Posts: 43
    If i run
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);

    in a “Run javascript” action it’s muting the audio on title level as well.
     

    That does work and I did notice the same updateFLVPlayer(true); missing when the audio is on the title level.

    I do find it odd that you need to set VarTriMuteAllFLV to '0' and change the boolean value of updateFLVPlayer to 'false' to unmute.
  • timk
    timk Community Member Posts: 1,207 ♦ Idol ♦
    The default state is "unmuted". The action behind it all is .setMuted() so it should be "true" to mute and "false" to unmute. This comes from the player. Muting is not the same as decreasing the volume to "0". You can still adjust the volume on a muted file, but you won't hear anything until you unmute.

    What I find a little odd is that the exact same action is published differently depending on its position in the title ;-)

    Tim