Basically I have embedded Mediaplayer via a webgadget and I am attempting to use Javascript to activate controls.
The following controls work fine using
Code: Select all
SetGadgetText(0, "JavaScript:" + C$(x)"+";")
C$(1)=document.getElementById('Player').controls.stop()
C$(2)=document.getElementById('Player').controls.play()
C$(3)="var vid = 'http://stream/live/camera1.ts'"+";"
C$(4)="document.getElementById('Player').URL = vid"+";"
Code: Select all
SetGadgetText(0, "JavaScript:" + C$(3) + " JavaScript:"+C$(4)+ "JavaScript:"+C$(2))
MSDN states the following :-
============================================
Syntax
player.settings.mute
Possible Values
This property is a read/write Boolean.
Value Description
true Audio is muted.
false Default. Audio is not muted
==========MS scripting example================
<!-- Create an HTML CHECKBOX control. -->
<INPUT TYPE = "CHECKBOX" ID = MUTE
onClick = "
/* Use the CHECKBOX state to set
the mute property. */
Player.settings.mute = MUTE.checked;
">
===========================================
I have tried numerous permutations and am at a total loss e.g.
Code: Select all
SetGadgetText(0,"JavaScript:" + "document.getElementById('Player').settings.mute = true"+";")
There must be something simple I am missing, it doesn't help that I have never used Java/Javascript previously.
*The above appears to be returning the state of settings.mute and not setting it
Thanks for looking.