This stream is a raw audio so some audio options need to be set.
However, function vlc.playlist.add(mrl, name, options) seems to ignore all options which is passed
Here is the code I use
Code: Select all
<embed
type="application/x-vlc-plugin"
pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc">
</embed>
<script type="text/javascript">
var options = new Array(" :demux=rawaud :rawaud-channels=2 :rawaud-samplerate=44100 :rawaud-fourcc=s16b");
vlc = document.getElementById("vlc");
var id = vlc.playlist.add("udp://@:2912/", "", options);
vlc.playlist.playItem(id);
</script>
If I use: vlc.playlist.add("udp/rawaud://@:2912/") I can hear something but it's not correctly decoded since other options can not be set.
Can someone help me?
vlc version: 2.2.2
browser-plugin-vlc version: 2.0.6-4
firefox version: 51.0.1