Explore the community Forums Lectora Lectora Questions & Answers How to mute contents of a web window

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #317357 Score: 0
    Profile photo of Daniel Carroll
    Daniel Carroll
    Member
    beginner
    intermediate
    friend finder
    advanced
    contributor
    curious george
    wise owl
    1 pt
    @dcarroll3658

    Hi there

     

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

    Thanks

     

    #317361 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    118 pts
    @mnotermans5114

    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

    #317367 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    307 pts
    @timk

    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

    This post has received 1 vote up.
    #317683 Score: 0
    Profile photo of Daniel Carroll
    Daniel Carroll
    Member
    beginner
    intermediate
    friend finder
    advanced
    contributor
    curious george
    wise owl
    1 pt
    @dcarroll3658

    Thanks Tim

     

     

    #317687 Score: 0
    Profile photo of Daniel Carroll
    Daniel Carroll
    Member
    beginner
    intermediate
    friend finder
    advanced
    contributor
    curious george
    wise owl
    1 pt
    @dcarroll3658

    Thanks Math

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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.