1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "cast/streaming/session_config.h"
6 
7 #include <utility>
8 
9 namespace openscreen {
10 namespace cast {
11 
SessionConfig(Ssrc sender_ssrc,Ssrc receiver_ssrc,int rtp_timebase,int channels,std::chrono::milliseconds target_playout_delay,std::array<uint8_t,16> aes_secret_key,std::array<uint8_t,16> aes_iv_mask,bool is_pli_enabled)12 SessionConfig::SessionConfig(Ssrc sender_ssrc,
13                              Ssrc receiver_ssrc,
14                              int rtp_timebase,
15                              int channels,
16                              std::chrono::milliseconds target_playout_delay,
17                              std::array<uint8_t, 16> aes_secret_key,
18                              std::array<uint8_t, 16> aes_iv_mask,
19                              bool is_pli_enabled)
20     : sender_ssrc(sender_ssrc),
21       receiver_ssrc(receiver_ssrc),
22       rtp_timebase(rtp_timebase),
23       channels(channels),
24       target_playout_delay(target_playout_delay),
25       aes_secret_key(std::move(aes_secret_key)),
26       aes_iv_mask(std::move(aes_iv_mask)),
27       is_pli_enabled(is_pli_enabled) {}
28 
29 SessionConfig::SessionConfig(const SessionConfig& other) = default;
30 SessionConfig::SessionConfig(SessionConfig&& other) noexcept = default;
31 SessionConfig& SessionConfig::operator=(const SessionConfig& other) = default;
32 SessionConfig& SessionConfig::operator=(SessionConfig&& other) noexcept =
33     default;
34 SessionConfig::~SessionConfig() = default;
35 
36 }  // namespace cast
37 }  // namespace openscreen
38