(My english is not that good.)
I am deeply grateful for Janus.
Exception handling seems necessary when extracting the profile from the following fmtp string if there is a space after the semicolon (;).
vfmtp ex)
blank_x = "packetization-mode=1;profile-level-id=4D401F;sprop-parameter-sets=SPS,PPS";
blank_o = "packetization-mode=1; profile-level-id=4D401F; sprop-parameter-sets=SPS,PPS"
test 1) janus_sdp_get_video_profile(JANUS_VIDEOCODEC_H264, blank_x)
--> result is "4D401F"
test 2) janus_sdp_get_video_profile(JANUS_VIDEOCODEC_H264, blank_o);
--> result is "=4D401F"
(I believe you’ve already looked at the janus_sdp_get_video_profile() function.)
Our thoughts may differ, but for now, since we need an appropriate profile-level-id value, we’re using it with the following modification.
I regularly check for code updates and will see what you think about them.