How to mute contents of a web window

dcarroll3658
dcarroll3658 Community Member Posts: 20
Hi there

 

Does anyone know how to mute the contents of a web window?

Thanks

 

Comments

  • mnotermans5114
    mnotermans5114 Community Member Posts: 916
    Hi Daniel,

    A sample would help, especially because its a bit unclear what content to mute.

    You probably first need to target the webwindow...

    var myWebwindow = document.getElementById("webwindowHTMLName");
    and then you can act upon it...

    myWebwindow.mute();

    Regards,
    Math
  • timk
    timk Community Member Posts: 1,207 ♦ Idol ♦
    The html name of the "Web Window" element is the id of the DIV the iframe is in. The id of the iframe is the html name + "iframe" so it's something like "webwidget74iframe". This may be useful when trying to target the frame with jquery.

    The easiest way to communicate with a frame in javascript is calling it by its name. The default name of a Lectora Web window is "Trivantis_WebWindow". To use the standard "Mute media"-action on all media in an iframe you can:

    On: Click
    Action: Run javascript
    Javascript:

    Trivantis_WebWindow.updateFLVPlayer(true);

    Use "false" to unmute.

    Tim
  • dcarroll3658
    dcarroll3658 Community Member Posts: 20
    Thanks Tim

     

     
  • dcarroll3658
    dcarroll3658 Community Member Posts: 20
    Thanks Math

    The web window contains a streamed video player from my Department.