Lines Matching refs:session_options
367 cricket::MediaSessionOptions* session_options, in AddSendStreams() argument
371 session_options->streams.clear(); in AddSendStreams()
373 session_options->AddSendStream(sender->media_type(), sender->id(), in AddSendStreams()
388 session_options->AddSendStream(cricket::MEDIA_TYPE_DATA, streamid, in AddSendStreams()
449 cricket::MediaSessionOptions* session_options) { in ConvertRtcOptionsForOffer() argument
457 session_options->recv_audio = (rtc_options.offer_to_receive_audio > 0); in ConvertRtcOptionsForOffer()
460 session_options->recv_video = (rtc_options.offer_to_receive_video > 0); in ConvertRtcOptionsForOffer()
463 session_options->vad_enabled = rtc_options.voice_activity_detection; in ConvertRtcOptionsForOffer()
464 session_options->audio_transport_options.ice_restart = in ConvertRtcOptionsForOffer()
466 session_options->video_transport_options.ice_restart = in ConvertRtcOptionsForOffer()
468 session_options->data_transport_options.ice_restart = rtc_options.ice_restart; in ConvertRtcOptionsForOffer()
469 session_options->bundle_enabled = rtc_options.use_rtp_mux; in ConvertRtcOptionsForOffer()
475 cricket::MediaSessionOptions* session_options) { in ParseConstraintsForAnswer() argument
484 session_options->recv_audio = true; in ParseConstraintsForAnswer()
495 session_options->recv_video = true; in ParseConstraintsForAnswer()
501 session_options->vad_enabled = value; in ParseConstraintsForAnswer()
506 session_options->bundle_enabled = value; in ParseConstraintsForAnswer()
509 session_options->bundle_enabled = true; in ParseConstraintsForAnswer()
514 session_options->audio_transport_options.ice_restart = value; in ParseConstraintsForAnswer()
515 session_options->video_transport_options.ice_restart = value; in ParseConstraintsForAnswer()
516 session_options->data_transport_options.ice_restart = value; in ParseConstraintsForAnswer()
519 session_options->audio_transport_options.ice_restart = false; in ParseConstraintsForAnswer()
520 session_options->video_transport_options.ice_restart = false; in ParseConstraintsForAnswer()
521 session_options->data_transport_options.ice_restart = false; in ParseConstraintsForAnswer()
917 cricket::MediaSessionOptions session_options; in CreateOffer() local
918 if (!GetOptionsForOffer(options, &session_options)) { in CreateOffer()
925 session_->CreateOffer(observer, options, session_options); in CreateOffer()
937 cricket::MediaSessionOptions session_options; in CreateAnswer() local
938 if (!GetOptionsForAnswer(constraints, &session_options)) { in CreateAnswer()
945 session_->CreateAnswer(observer, constraints, session_options); in CreateAnswer()
1439 cricket::MediaSessionOptions* session_options) { in GetOptionsForOffer() argument
1440 if (!ConvertRtcOptionsForOffer(rtc_options, session_options)) { in GetOptionsForOffer()
1444 AddSendStreams(session_options, senders_, rtp_data_channels_); in GetOptionsForOffer()
1448 session_options->recv_audio = in GetOptionsForOffer()
1449 session_options->HasSendMediaStream(cricket::MEDIA_TYPE_AUDIO) || in GetOptionsForOffer()
1453 session_options->recv_video = in GetOptionsForOffer()
1454 session_options->HasSendMediaStream(cricket::MEDIA_TYPE_VIDEO) || in GetOptionsForOffer()
1457 session_options->bundle_enabled = in GetOptionsForOffer()
1458 session_options->bundle_enabled && in GetOptionsForOffer()
1459 (session_options->has_audio() || session_options->has_video() || in GetOptionsForOffer()
1460 session_options->has_data()); in GetOptionsForOffer()
1463 session_options->data_channel_type = cricket::DCT_SCTP; in GetOptionsForOffer()
1470 cricket::MediaSessionOptions* session_options) { in GetOptionsForAnswer() argument
1471 session_options->recv_audio = false; in GetOptionsForAnswer()
1472 session_options->recv_video = false; in GetOptionsForAnswer()
1473 if (!ParseConstraintsForAnswer(constraints, session_options)) { in GetOptionsForAnswer()
1477 AddSendStreams(session_options, senders_, rtp_data_channels_); in GetOptionsForAnswer()
1478 session_options->bundle_enabled = in GetOptionsForAnswer()
1479 session_options->bundle_enabled && in GetOptionsForAnswer()
1480 (session_options->has_audio() || session_options->has_video() || in GetOptionsForAnswer()
1481 session_options->has_data()); in GetOptionsForAnswer()
1487 session_options->data_channel_type = cricket::DCT_SCTP; in GetOptionsForAnswer()