Page 1 of 1

VLC 2.0.4 WinXP ActiveX opens new window

Posted: 27 Nov 2012 19:26
by mddirba
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
Image

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>
Javascript code to start player looks like this

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"]);

Re: VLC 2.0.4 WinXP ActiveX opens new window

Posted: 29 Nov 2012 10:51
by marvazmor
Hi all ...

I have the same problem. I'm programming an application in VB.Net 2012 and when I open a FormChild with VLC ActiveX control, automatically opens another FORM is different and not FormChild.

If I do the same in a normalFORM, nothing happens, it plays the corresponding stream and ready, but when the control is in a FormChild, opens two forms: one in which the FormChild does not play anything, and another form that is not FormChild, which plays the stream itself.

How do I fix this?

Thanks and regards.
https://mail-attachment.googleuserconte ... pI_hjW0sow


SO: Windows 7 Ultimate 64 Bits - VLC 2.0.4 32 Bits

Re: VLC 2.0.4 WinXP ActiveX opens new window

Posted: 29 Nov 2012 10:55
by marvazmor
As an example I designed a form with four VLC ActiveX controls. The post with the following code:

formVLC.mdiparent = I
formVLC.show ()

And what it does is open the FormChild which show four logos of VLC. It also opens a form for each ActiveX control VLC. And all these forms are called "VLC (Open DIRECTX 3D)"

https://mail-attachment.googleuserconte ... pI_hjW0sow

Re: VLC 2.0.4 WinXP ActiveX opens new window

Posted: 02 Dec 2012 14:35
by Jean-Baptiste Kempf
This is weird. PAtch is welcome.