RTCMultiConnection-SignalR icon indicating copy to clipboard operation
RTCMultiConnection-SignalR copied to clipboard

Modify RTCMultiConnection.js

Open Jhordan92 opened this issue 6 years ago • 1 comments

I'm trying to get more control over the events related to the connections of each user. I wan to keep track and update to each user a list of users connected, and to specify the Video tag id, I'm already adding to a list in the hub, each user connected, and I have a method in the hub that returns the list, but I'm trying to obtain the data when a user connects. So I tried accessing to the onStream event, but it doesn't seem to enter there.

`connection.onstream = function (e) {

        debugger
        var parentNode = connection.videosContainer;
        parentNode.insertBefore(e.mediaElement, parentNode.firstChild);
        var played = e.mediaElement.play();
        return "undefined" != typeof played ? void played["catch"](function () { }).then(function () {
            setTimeout(function () {
                e.mediaElement.play()
            }, 2e3)
        }) : void setTimeout(function () {
            e.mediaElement.play()
        }, 2e3)
    }`

Jhordan92 avatar Jun 29 '18 20:06 Jhordan92

Did you solve it?

muaz-khan avatar Sep 14 '18 05:09 muaz-khan