Page 1 of 1

Differences with activeX rtsp formats?

Posted: 17 Nov 2015 16:18
by johnd126
Hi

I have the VLC activex plugin coded into a web page (made exclusively for IE) but for some reason it won't display some RTSP streams. These streams do play fine in the Windows VideoLAN application on the same computer. There are other streams which play fine in the plugin so I know the basics of my code is correct.

Are there differences / limitations to the streams that the activex plugin will play versus what the full application will play?

After loading the stream I loop and check the vlc.input.state parameter. When the stream plays it goes from IDLE, to PLAYING. With the streams that fail I get IDLE, OPENING (several times) then ERROR. Is there any way to get more information about the ERROR?

I'm loading the stream like this:

Code: Select all

var options = new Array(':aspect-ratio=4:3', '--rtsp-tcp'); var vlc = document.getElementById('rtspObj'); vlc.playlist.items.clear(); var vlcid = vlc.playlist.add(URL, 'stream', options); vlc.playlist.playItem(vlcid); vlc.playlist.play();
My object is declared like this:

Code: Select all

<object classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' style='position:absolute; top:0; left:0; width:800px; height:600px;' id='rtspObj' width='800px' height='600px'> <param name='MRL' value='' /> <param name='controls' value='false' /> <param name='Volume' value='100' /> <param name='autoloop' value='false' /> <param name='autoplay' value='false' /> <embed type='application/x-vlc-plugin' version='VideoLAN.VLCPlugin.2' pluginspage='http://www.videolan.org' name='rtspObj' width='800' height='600' toolbar='false' loop='false' autoplay='false' /> </object>
I'm using VLC version 2.2.1.

Thanks!