VLC IE plugin multicast support

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
ercanz
New Cone
New Cone
Posts: 1
Joined: 03 Jan 2020 21:28

VLC IE plugin multicast support

Postby ercanz » 03 Jan 2020 21:37

Hello,
We would like to enable multicast streams to be watched in a web browser by Desktop and Laptops that have Windows OS.
We have installed the latest release of VLC 3.0.8 with enabling plugin options. We are able to play and watch the multicast streams by VLC.exe application, however we cannot play the streams in a vlc plugin enabled HTML page below. (Internet Explorer version 11 is used)
We have tried udp and rtp multicast options both, but it is still failing. According to wireshark trace, we can see that the IGMP join message is sent and our PC is receiving the multicast packets from the network. However it is not displayed on the web page.
Can we play multicast in such ways in the browsers with VLC plugins ? Is this supported ?




<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>

<script>

$(document).ready(function () {

//alert('Document ready!');
var vlc = document.getElementById("vlc");
var options = new Array(":demux=rawaud", ":rawaud-channels=2", ":rawaud-samplerate=44100", ":rawaud-fourcc=s16b");
var urlVideofile = "udp://@239.1.2.3:1234"
var id = vlc.playlist.add(urlVideofile, null,null);
vlc.playlist.playItem(id);

});



$(window).on("load", function () {

//console.log("window loaded");

});

</script>

<!--<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
alert('Document ready!');
var vlc = document.getElementById("vlc");
var options = new Array(":rtsp-tcp");
var urlVideofile = "udp://@239.1.2.3:1234/"
var id = vlc.playlist.add(urlVideofile, null, options);
vlc.playlist.playItem(id);
}, false);



</script>-->

</head>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" width="640" height="480" target="udp://@239.1.2.3:1234" id="vlc" />

</body>
</html>

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: VLC IE plugin multicast support

Postby da2424 » 13 Jan 2020 22:50

Hi,

I have tested your code with a multicast stream (rtp). It works fine for me, after confirming the appearing Windows Firewall security question.
Maybe a firewall is the cause for you, too?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests