public static IDictionary<string, string> hlsLiveUrl(Stream stream)
{
const string defaultScheme = "http";
string url = string.Format("{0}://{1}/{2}/{3}", defaultScheme, stream.LiveHttpHost, stream.HubName, stream.Title);
IDictionary<string, string> dictionary = new Dictionary<string, string>();
dictionary[Stream.ORIGIN] = url + ".m3u8";
string[] profiles = stream.Profiles;
if (profiles != null)
{
foreach (string p in profiles)
{
dictionary[p] = url + '@' + p + ".m3u8";
}
}
return dictionary;
}