VLC 2.0.4 WinXP ActiveX opens new window
Posted: 27 Nov 2012 19:26
Problem: Instead of playing video inside the current browser window IE opens a new window titled "VLC (software RGB DirectX ouput)" this is not the case when VLC media player 2.0.1 is installed. Any ideas for why this is happening would be appreciated.
http://imgur.com/J6oJd
VLC media player 2.0.4 Twoflower installed on
Windows XP Professional Service Pack 3 with latest updates as of 11/27/2012
The active X object embedded on the fly for hosts running IE looks like this
Javascript code to start player looks like this
http://imgur.com/J6oJd
VLC media player 2.0.4 Twoflower installed on
Windows XP Professional Service Pack 3 with latest updates as of 11/27/2012
The active X object embedded on the fly for hosts running IE looks like this
Code: Select all
<div id="play">
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" width="640" height="480" id="vlc" events="True">
<param name="autoplay" value="false" />
<param name="toolbar" value="false" />
<param name="mute" value="true" />
<param name="src" value="" />
<param name="name" value="wmode" />
<param name="value" value="transparent" />
</object>
</div>
Code: Select all
var name = 'vlc';
if (window.document[name]) {
this.plugin = window.document[name];
} else if (PluginDetect.isIE && document.embeds && document.embeds[name]) {
this.plugin = document.embeds[name];
} else {
this.plugin = document.getElementById(name);
}
this.plugin.playlist.add('rtsp://' + hostname + ':8557/PSIA/Streaming/channels/2?videoCodecType=H.264';, '', [":rtsp-tcp"]);