@@ -619,10 +619,6 @@ static duk_ret_t janus_duktape_method_pushevent(duk_context *ctx) {
619
619
janus_sdp_find_first_codec (parsed_sdp , JANUS_SDP_VIDEO , -1 , & vcodec );
620
620
if (vcodec )
621
621
session -> vcodec = janus_videocodec_from_name (vcodec );
622
- if (session -> vcodec != JANUS_VIDEOCODEC_VP8 && session -> vcodec != JANUS_VIDEOCODEC_H264 ) {
623
- /* VP8 r H.264 were not negotiated, if simulcasting was enabled then disable it here */
624
- janus_rtp_simulcasting_cleanup (& session -> rid_extmap_id , session -> ssrc , session -> rid , & session -> rid_mutex );
625
- }
626
622
}
627
623
janus_sdp_destroy (parsed_sdp );
628
624
/* Send asynchronously */
@@ -2250,10 +2246,6 @@ struct janus_plugin_result *janus_duktape_handle_message(janus_plugin_session *h
2250
2246
janus_sdp_find_first_codec (parsed_sdp , JANUS_SDP_VIDEO , -1 , & vcodec );
2251
2247
if (vcodec )
2252
2248
session -> vcodec = janus_videocodec_from_name (vcodec );
2253
- if (session -> vcodec != JANUS_VIDEOCODEC_VP8 && session -> vcodec != JANUS_VIDEOCODEC_H264 ) {
2254
- /* VP8 r H.264 were not negotiated, if simulcasting was enabled then disable it here */
2255
- janus_rtp_simulcasting_cleanup (& session -> rid_extmap_id , session -> ssrc , session -> rid , & session -> rid_mutex );
2256
- }
2257
2249
janus_sdp_destroy (parsed_sdp );
2258
2250
}
2259
2251
if (json_is_true (json_object_get (jsep , "e2ee" )))
@@ -2469,7 +2461,7 @@ void janus_duktape_incoming_rtp(janus_plugin_session *handle, janus_plugin_rtp *
2469
2461
} else {
2470
2462
/* We're simulcasting, save the best video quality */
2471
2463
gboolean save = janus_rtp_simulcasting_context_process_rtp (& session -> rec_simctx ,
2472
- buf , len , session -> ssrc , session -> rid , session -> vcodec , & session -> rec_ctx , & session -> rid_mutex );
2464
+ buf , len , NULL , 0 , session -> ssrc , session -> rid , session -> vcodec , & session -> rec_ctx , & session -> rid_mutex );
2473
2465
if (save ) {
2474
2466
uint32_t seq_number = ntohs (rtp -> seq_number );
2475
2467
uint32_t timestamp = ntohl (rtp -> timestamp );
@@ -2791,7 +2783,8 @@ static void janus_duktape_relay_rtp_packet(gpointer data, gpointer user_data) {
2791
2783
return ;
2792
2784
/* Process this packet: don't relay if it's not the SSRC/layer we wanted to handle */
2793
2785
gboolean relay = janus_rtp_simulcasting_context_process_rtp (& session -> sim_context ,
2794
- (char * )packet -> data , packet -> length , packet -> ssrc , NULL , sender -> vcodec , & session -> vrtpctx , NULL );
2786
+ (char * )packet -> data , packet -> length , packet -> extensions .dd_content , packet -> extensions .dd_len ,
2787
+ packet -> ssrc , NULL , sender -> vcodec , & session -> vrtpctx , NULL );
2795
2788
if (session -> sim_context .need_pli && sender -> handle ) {
2796
2789
/* Send a PLI */
2797
2790
JANUS_LOG (LOG_VERB , "We need a PLI for the simulcast context\n" );
0 commit comments