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