I'm working on a media player where I'm using the Windows Media ActiveX object to play video, and I need to know when the video goes full screen. I can't find a full screen event, so I'm having to find a workaround. As part of the work around, I need to be able to get (and preferably intercept) the double click event which makes the media player go full screen, but I can't get the event when the player has started playing, presumably because the player takes it to be able to know when to go full screen.
I've tried many different things to get the event while it's playing:
activeXElement.attachEvent('ondblclick',function(){alert('Double Click')});
activeXElement.attachEvent('dblclick',function(){alert('Double Click')});
activeXElement.attachEvent('ondoubleclick',function(){alert('Double Click')});
activeXElement.attachEvent('doubleclick',function(){alert('Double Click')});
activeXElement.attachEvent('DoubleClick',function(){alert('Double Click')});
activeXElement.attachEvent('onDoubleClick',function(){alert('Double Click')});
activeXElement.attachEvent('OnDoubleClick',function(){alert('Double Click')});
activeXElement.ondblclick=function(){alert('Double Click')};
activeXElement.dblclick=function(){alert('Double Click')};
activeXElement.ondoubleclick=function(){alert('Double Click')};
activeXElement.doubleclick=function(){alert('Double Click')};
activeXElement.DoubleClick=function(){alert('Double Click')};
activeXElement.onDoubleClick=function(){alert('Double Click')};
activeXElement.OnDoubleClick=function(){alert('Double Click')};
When it hasn't started playing, the following two work:
activeXElement.attachEvent('doubleclick',function(){alert('Double Click')});
activeXElement.attachEvent('DoubleClick',function(){alert('Double Click')});
None of them are working when it is playing. Does anybody have any ideas on how to get a double click event on the ActiveX object when it is playing?