How to mute contents of a web window

Hi there

undefined

Discussion (4)

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

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

Thanks Tim

undefined

Thanks Math

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

Discussions have been disabled for this post