예제 #1
0
        private EndpointJson GetDashEndpoint(SvcInstance instance)
        {
            var protocol = instance.Secure ? "https" : "http";
            var port     = instance.Secure ? "8443" : "8080";

            return(new EndpointJson
            {
                type = "dash",
                file = $"{protocol}://{instance.Endpoint}:{port}/app/{StreamKey}/manifest.mpd",
                label = $"{instance.Name} - DASH"
            });
        }
예제 #2
0
        private EndpointJson GetHlsEndpoint(SvcInstance instance)
        {
            var protocol = instance.Secure ? "https" : "http";
            var port     = instance.Secure ? "8443" : "8080";

            return(new EndpointJson
            {
                type = "hls",
                file = $"{protocol}://{instance.Endpoint}:{port}/app/{StreamKey}/playlist.m3u8",
                label = $"{instance.Name} - HLS"
            });
        }
예제 #3
0
        private EndpointJson GetWebRtcEndpoint(SvcInstance instance)
        {
            var protocol = instance.Secure ? "wss" : "ws";
            var port     = instance.Secure ? "3334" : "3333";

            return(new EndpointJson
            {
                type = "webrtc",
                file = $"{protocol}://{instance.Endpoint}:{port}/app/{StreamKey}",
                label = $"{instance.Name} - WebRTC"
            });
        }