axvlc.dll: error parsing options passed by javascript in IE
Passing options for rtsp streaming failed from javascript.
Our html is this:
Javascript:
var htmlObjStr = '' + '' + ' + '' + '';
it is injected in a
$("#vlcContainer").append(this.htmlObjStr); $("#vlcContainer").width(this.width); $("#vlcContainer").height(this.height);
Then we start vlc with:
var optionsIE = [":input-repeat=1", "drop-late-frames=1", :vout=direct3d", ":ffmpeg-fast=1", ":ffmpeg-hw=1, :network-caching=200"]; var optionsFIREFOX = [":input-repeat=1", "drop-late-frames=1", ":vout=direct3d", ":ffmpeg-fast=1", ":network-caching=200"]; if (VlcWeb.Browser() == 'IEXPLORE') id = vlc.playlist.add(targetURL, null, optionsIE); else id = vlc.playlist.add(targetURL, null, optionsFIREFOX); vlc.playlist.playItem(id);
As you can see the options string for IE 11 is not correct, the options ":ffmpeg-hw=1, :network-caching=200" are in the same string and not two separated strings in the array. With this syntax works on IE but not with Firefox, where we use the optionsFIREFOX object. Seems to be a parsing differences in the options object.
Thanks for all!
Bye