private JArray GetChannelOutputs(string channelId)
{
var channel = GetChannel(channelId);
return new JArray(channel.OutputStreams.Select(os => {
var res = new JObject();
res["outputId"] = GetObjectId(os);
res["name"] = os.ToString();
res["type"] = (int)os.OutputStreamType;
return res;
}));
}