How we call direct show filter method from Javascript web
I am working on directshow.net to show virtual web cam in html .i need some method call from javascript to my custom directshow filter .so how will do this
references : https://www.codeproject.com/Articles/421167/Pure-NET-DirectShow-Filters-in-Csharp
java script code to load virtual webcam :
navigator.mediaDevices.enumerateDevices()
.then((devices) => {
devices.forEach((device) =>
{
console.log(`${device.kind}: ${device.label} id = ${device.deviceId}`);
if (device.label == "My Virtual Camera") {
myVirtualdevice = device;
navigator.mediaDevices.getUserMedia(
{
video:
{
deviceId: myVirtualdevice.deviceId
}
}
).then(function (stream) {
console.log("Found Virtual Camera");
video.srcObject = stream;
})
.catch(function (err0r)
{
console.log("Something went wrong!");
});
}
});
})
.catch((err) => {
console.error(`${err.name}: ${err.message}`);
});
Now I want to call VideoHtmlElement.MyCustomMethod() that will received in MyCustomDirectShow filter..