mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 15:26:12 +00:00
refactoring
This commit is contained in:
@@ -440,13 +440,15 @@ static struct janus_plugin_result *_plugin_handle_message(
|
||||
"s=PiKVM uStreamer" RN
|
||||
"t=0 0" RN
|
||||
"%s%s",
|
||||
us_get_now_id() >> 1,
|
||||
# if JANUS_PLUGIN_API_VERSION >= 100
|
||||
// Place video SDP before audio SDP so that the video and audio streams
|
||||
// have predictable indices, even if audio is not available.
|
||||
us_get_now_id() >> 1, video_sdp, audio_sdp
|
||||
// See also client.c.
|
||||
video_sdp, audio_sdp
|
||||
# else
|
||||
// For versions of Janus prior to 1.x, place the audio SDP first.
|
||||
us_get_now_id() >> 1, audio_sdp, video_sdp
|
||||
audio_sdp, video_sdp
|
||||
# endif
|
||||
);
|
||||
free(audio_sdp);
|
||||
|
||||
Reference in New Issue
Block a user