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" }); }
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" }); }
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" }); }