Make statsobj url configurable
This commit is contained in:
parent
47a62e7968
commit
d923e3b823
|
@ -10,8 +10,9 @@ namespace RTMPDash;
|
|||
public class Program {
|
||||
public const string SiteName = "chaos.stream";
|
||||
public const string IngressDomain = "rtmp://chaos.stream";
|
||||
public const string RtmpStatsUrl = "http://127.0.0.1:8083";
|
||||
public const string RootDomain = "https://chaos.stream";
|
||||
public const string PlayerDomain = "https://live.on.chaos.stream";
|
||||
public const string PlayerDomain = "https://player.chaos.stream";
|
||||
public const string FragmentDomain = "https://cdn.chaos.stream";
|
||||
public const string StatsDomain = "https://stats.chaos.stream";
|
||||
public const string PrivacyEmail = "chaosstream-privacy@zotan.email";
|
||||
|
|
|
@ -37,7 +37,7 @@ public static class StreamUtils {
|
|||
public static List<string> ListLiveUsers() => GetStatsObject().Server.Applications.First(p => p.Name == "ingress").MethodLive.Streams.Select(p => p.Name).ToList();
|
||||
|
||||
public static StatsObject GetStatsObject() {
|
||||
var obj = (StatsObject)Serializer.Deserialize(new WebClient().OpenRead("http://127.0.0.1:8080")!);
|
||||
var obj = (StatsObject)Serializer.Deserialize(new WebClient().OpenRead(Program.RtmpStatsUrl)!);
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue