in chime-sdk-signaling-cpp/src/utils/signal_frame_debug_utils.h [23:52]
static std::string SubscribeFrameDebugString(const signal_sdk::SdkSubscribeFrame& subscribe) {
std::string str = "SignalFrame:\nSubscribe: {\nduplex: " + DuplexToString(subscribe.duplex()) +
"\naudio_host: " + subscribe.audio_host() +
"\naudio_checkin: " + std::to_string(subscribe.audio_checkin()) +
"\naudio_muted: " + std::to_string(subscribe.audio_muted()) + "\nallocations:{";
for (const signal_sdk::SdkStreamDescriptor& stream : subscribe.send_streams()) {
str += "\n\t";
if (stream.has_group_id()) {
str += "group_id:" + std::to_string(stream.group_id()) + " ";
}
if (stream.has_stream_id()) {
str += "stream_id: " + std::to_string(stream.stream_id()) + " ";
}
if (stream.has_max_bitrate_kbps()) {
str += "max_bitrate_kbps:" + std::to_string(stream.max_bitrate_kbps()) + " ";
}
}
str += "\n}\n";
str += "receive_streams:{";
for (const uint32_t& stream_id : subscribe.receive_stream_ids()) {
str += " " + std::to_string(stream_id);
}
str += " }\n";
if (subscribe.has_sdp_offer()) {
str += "SDP:\n" + subscribe.sdp_offer();
}
return str;
}