blob: d5c26f42ef665109caa9c37e962fa2bf86e6fad8 [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001/*
kjellander65c7f672016-02-12 00:05:01 -08002 * Copyright 2004 The WebRTC project authors. All Rights Reserved.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00003 *
kjellander65c7f672016-02-12 00:05:01 -08004 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00009 */
10
11// Types and classes used in media session descriptions.
12
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#ifndef PC_MEDIASESSION_H_
14#define PC_MEDIASESSION_H_
henrike@webrtc.org28e20752013-07-10 00:45:36 +000015
buildbot@webrtc.orga09a9992014-08-13 17:26:08 +000016#include <algorithm>
deadbeef0ed85b22016-02-23 17:24:52 -080017#include <map>
Steve Anton1a9d3c32018-12-10 17:18:54 -080018#include <memory>
henrike@webrtc.org28e20752013-07-10 00:45:36 +000019#include <string>
20#include <vector>
henrike@webrtc.org28e20752013-07-10 00:45:36 +000021
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020022#include "api/mediatypes.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020023#include "media/base/mediaconstants.h"
24#include "media/base/mediaengine.h" // For DataChannelType
Jonas Oreland1cd39fa2018-10-11 07:47:12 +020025#include "p2p/base/icecredentialsiterator.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020026#include "p2p/base/transportdescriptionfactory.h"
Zhi Huang365381f2018-04-13 16:44:34 -070027#include "pc/jseptransport.h"
Steve Anton4ab68ee2017-12-19 14:26:11 -080028#include "pc/sessiondescription.h"
henrike@webrtc.org28e20752013-07-10 00:45:36 +000029
30namespace cricket {
31
32class ChannelManager;
henrike@webrtc.org28e20752013-07-10 00:45:36 +000033
zhihuang8f65cdf2016-05-06 18:40:30 -070034// Default RTCP CNAME for unit tests.
35const char kDefaultRtcpCname[] = "DefaultRtcpCname";
36
zhihuang1c378ed2017-08-17 14:10:50 -070037// Options for an RtpSender contained with an media description/"m=" section.
38struct SenderOptions {
39 std::string track_id;
Steve Anton8ffb9c32017-08-31 15:45:38 -070040 std::vector<std::string> stream_ids;
zhihuang1c378ed2017-08-17 14:10:50 -070041 int num_sim_layers;
42};
jiayl@webrtc.org742922b2014-10-07 21:32:43 +000043
zhihuang1c378ed2017-08-17 14:10:50 -070044// Options for an individual media description/"m=" section.
45struct MediaDescriptionOptions {
46 MediaDescriptionOptions(MediaType type,
47 const std::string& mid,
Steve Anton1d03a752017-11-27 14:30:09 -080048 webrtc::RtpTransceiverDirection direction,
zhihuang1c378ed2017-08-17 14:10:50 -070049 bool stopped)
50 : type(type), mid(mid), direction(direction), stopped(stopped) {}
zhihuanga77e6bb2017-08-14 18:17:48 -070051
zhihuang1c378ed2017-08-17 14:10:50 -070052 // TODO(deadbeef): When we don't support Plan B, there will only be one
53 // sender per media description and this can be simplified.
54 void AddAudioSender(const std::string& track_id,
Steve Anton8ffb9c32017-08-31 15:45:38 -070055 const std::vector<std::string>& stream_ids);
zhihuang1c378ed2017-08-17 14:10:50 -070056 void AddVideoSender(const std::string& track_id,
Steve Anton8ffb9c32017-08-31 15:45:38 -070057 const std::vector<std::string>& stream_ids,
olka3c747662017-08-17 06:50:32 -070058 int num_sim_layers);
zhihuanga77e6bb2017-08-14 18:17:48 -070059
zhihuang1c378ed2017-08-17 14:10:50 -070060 // Internally just uses sender_options.
61 void AddRtpDataChannel(const std::string& track_id,
62 const std::string& stream_id);
olka3c747662017-08-17 06:50:32 -070063
zhihuang1c378ed2017-08-17 14:10:50 -070064 MediaType type;
65 std::string mid;
Steve Anton1d03a752017-11-27 14:30:09 -080066 webrtc::RtpTransceiverDirection direction;
zhihuang1c378ed2017-08-17 14:10:50 -070067 bool stopped;
68 TransportOptions transport_options;
69 // Note: There's no equivalent "RtpReceiverOptions" because only send
70 // stream information goes in the local descriptions.
71 std::vector<SenderOptions> sender_options;
72
73 private:
74 // Doesn't DCHECK on |type|.
75 void AddSenderInternal(const std::string& track_id,
Steve Anton8ffb9c32017-08-31 15:45:38 -070076 const std::vector<std::string>& stream_ids,
olka3c747662017-08-17 06:50:32 -070077 int num_sim_layers);
zhihuang1c378ed2017-08-17 14:10:50 -070078};
olka3c747662017-08-17 06:50:32 -070079
zhihuang1c378ed2017-08-17 14:10:50 -070080// Provides a mechanism for describing how m= sections should be generated.
81// The m= section with index X will use media_description_options[X]. There
82// must be an option for each existing section if creating an answer, or a
83// subsequent offer.
84struct MediaSessionOptions {
85 MediaSessionOptions() {}
olka3c747662017-08-17 06:50:32 -070086
zhihuang1c378ed2017-08-17 14:10:50 -070087 bool has_audio() const { return HasMediaDescription(MEDIA_TYPE_AUDIO); }
88 bool has_video() const { return HasMediaDescription(MEDIA_TYPE_VIDEO); }
89 bool has_data() const { return HasMediaDescription(MEDIA_TYPE_DATA); }
90
91 bool HasMediaDescription(MediaType type) const;
92
93 DataChannelType data_channel_type = DCT_NONE;
zhihuang1c378ed2017-08-17 14:10:50 -070094 bool vad_enabled = true; // When disabled, removes all CN codecs from SDP.
95 bool rtcp_mux_enabled = true;
96 bool bundle_enabled = false;
Johannes Kron89f874e2018-11-12 10:25:48 +010097 bool offer_extmap_allow_mixed = false;
zhihuang1c378ed2017-08-17 14:10:50 -070098 std::string rtcp_cname = kDefaultRtcpCname;
Benjamin Wrighta54daf12018-10-11 15:33:17 -070099 webrtc::CryptoOptions crypto_options;
zhihuang1c378ed2017-08-17 14:10:50 -0700100 // List of media description options in the same order that the media
101 // descriptions will be generated.
102 std::vector<MediaDescriptionOptions> media_description_options;
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200103 std::vector<IceParameters> pooled_ice_credentials;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000104};
105
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000106// Creates media session descriptions according to the supplied codecs and
107// other fields, as well as the supplied per-call options.
108// When creating answers, performs the appropriate negotiation
109// of the various fields to determine the proper result.
110class MediaSessionDescriptionFactory {
111 public:
112 // Default ctor; use methods below to set configuration.
113 // The TransportDescriptionFactory is not owned by MediaSessionDescFactory,
114 // so it must be kept alive by the user of this class.
115 explicit MediaSessionDescriptionFactory(
116 const TransportDescriptionFactory* factory);
117 // This helper automatically sets up the factory to get its configuration
118 // from the specified ChannelManager.
119 MediaSessionDescriptionFactory(ChannelManager* cmanager,
120 const TransportDescriptionFactory* factory);
121
ossudedfd282016-06-14 07:12:39 -0700122 const AudioCodecs& audio_sendrecv_codecs() const;
ossu075af922016-06-14 03:29:38 -0700123 const AudioCodecs& audio_send_codecs() const;
124 const AudioCodecs& audio_recv_codecs() const;
125 void set_audio_codecs(const AudioCodecs& send_codecs,
126 const AudioCodecs& recv_codecs);
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000127 void set_audio_rtp_header_extensions(const RtpHeaderExtensions& extensions) {
128 audio_rtp_extensions_ = extensions;
129 }
Amit Hilbuch77938e62018-12-21 09:23:38 -0800130 RtpHeaderExtensions audio_rtp_header_extensions() const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000131 const VideoCodecs& video_codecs() const { return video_codecs_; }
132 void set_video_codecs(const VideoCodecs& codecs) { video_codecs_ = codecs; }
133 void set_video_rtp_header_extensions(const RtpHeaderExtensions& extensions) {
134 video_rtp_extensions_ = extensions;
135 }
Amit Hilbuch77938e62018-12-21 09:23:38 -0800136 RtpHeaderExtensions video_rtp_header_extensions() const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000137 const DataCodecs& data_codecs() const { return data_codecs_; }
138 void set_data_codecs(const DataCodecs& codecs) { data_codecs_ = codecs; }
139 SecurePolicy secure() const { return secure_; }
140 void set_secure(SecurePolicy s) { secure_ = s; }
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000141
jbauch5869f502017-06-29 12:31:36 -0700142 void set_enable_encrypted_rtp_header_extensions(bool enable) {
143 enable_encrypted_rtp_header_extensions_ = enable;
144 }
145
Steve Anton8f66ddb2018-12-10 16:08:05 -0800146 void set_is_unified_plan(bool is_unified_plan) {
147 is_unified_plan_ = is_unified_plan;
148 }
149
Steve Anton6fe1fba2018-12-11 10:15:23 -0800150 std::unique_ptr<SessionDescription> CreateOffer(
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000151 const MediaSessionOptions& options,
152 const SessionDescription* current_description) const;
Steve Anton6fe1fba2018-12-11 10:15:23 -0800153 std::unique_ptr<SessionDescription> CreateAnswer(
zstein4b2e0822017-02-17 19:48:38 -0800154 const SessionDescription* offer,
155 const MediaSessionOptions& options,
156 const SessionDescription* current_description) const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000157
158 private:
ossu075af922016-06-14 03:29:38 -0700159 const AudioCodecs& GetAudioCodecsForOffer(
Steve Anton1d03a752017-11-27 14:30:09 -0800160 const webrtc::RtpTransceiverDirection& direction) const;
ossu075af922016-06-14 03:29:38 -0700161 const AudioCodecs& GetAudioCodecsForAnswer(
Steve Anton1d03a752017-11-27 14:30:09 -0800162 const webrtc::RtpTransceiverDirection& offer,
163 const webrtc::RtpTransceiverDirection& answer) const;
Steve Anton5c72e712018-12-10 14:25:30 -0800164 void GetCodecsForOffer(
165 const std::vector<const ContentInfo*>& current_active_contents,
166 AudioCodecs* audio_codecs,
167 VideoCodecs* video_codecs,
168 DataCodecs* data_codecs) const;
169 void GetCodecsForAnswer(
170 const std::vector<const ContentInfo*>& current_active_contents,
171 const SessionDescription& remote_offer,
172 AudioCodecs* audio_codecs,
173 VideoCodecs* video_codecs,
174 DataCodecs* data_codecs) const;
175 void GetRtpHdrExtsToOffer(
176 const std::vector<const ContentInfo*>& current_active_contents,
Steve Anton5c72e712018-12-10 14:25:30 -0800177 RtpHeaderExtensions* audio_extensions,
178 RtpHeaderExtensions* video_extensions) const;
Yves Gerey665174f2018-06-19 15:03:05 +0200179 bool AddTransportOffer(const std::string& content_name,
180 const TransportOptions& transport_options,
181 const SessionDescription* current_desc,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200182 SessionDescription* offer,
183 IceCredentialsIterator* ice_credentials) const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000184
Steve Anton1a9d3c32018-12-10 17:18:54 -0800185 std::unique_ptr<TransportDescription> CreateTransportAnswer(
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000186 const std::string& content_name,
187 const SessionDescription* offer_desc,
188 const TransportOptions& transport_options,
deadbeefb7892532017-02-22 19:35:18 -0800189 const SessionDescription* current_desc,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200190 bool require_transport_attributes,
191 IceCredentialsIterator* ice_credentials) const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000192
Yves Gerey665174f2018-06-19 15:03:05 +0200193 bool AddTransportAnswer(const std::string& content_name,
194 const TransportDescription& transport_desc,
195 SessionDescription* answer_desc) const;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000196
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000197 // Helpers for adding media contents to the SessionDescription. Returns true
198 // it succeeds or the media content is not needed, or false if there is any
199 // error.
200
201 bool AddAudioContentForOffer(
zhihuang1c378ed2017-08-17 14:10:50 -0700202 const MediaDescriptionOptions& media_description_options,
203 const MediaSessionOptions& session_options,
204 const ContentInfo* current_content,
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000205 const SessionDescription* current_description,
206 const RtpHeaderExtensions& audio_rtp_extensions,
207 const AudioCodecs& audio_codecs,
208 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200209 SessionDescription* desc,
210 IceCredentialsIterator* ice_credentials) const;
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000211
212 bool AddVideoContentForOffer(
zhihuang1c378ed2017-08-17 14:10:50 -0700213 const MediaDescriptionOptions& media_description_options,
214 const MediaSessionOptions& session_options,
215 const ContentInfo* current_content,
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000216 const SessionDescription* current_description,
217 const RtpHeaderExtensions& video_rtp_extensions,
218 const VideoCodecs& video_codecs,
219 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200220 SessionDescription* desc,
221 IceCredentialsIterator* ice_credentials) const;
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000222
223 bool AddDataContentForOffer(
zhihuang1c378ed2017-08-17 14:10:50 -0700224 const MediaDescriptionOptions& media_description_options,
225 const MediaSessionOptions& session_options,
226 const ContentInfo* current_content,
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000227 const SessionDescription* current_description,
zhihuang1c378ed2017-08-17 14:10:50 -0700228 const DataCodecs& data_codecs,
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000229 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200230 SessionDescription* desc,
231 IceCredentialsIterator* ice_credentials) const;
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000232
zhihuang1c378ed2017-08-17 14:10:50 -0700233 bool AddAudioContentForAnswer(
234 const MediaDescriptionOptions& media_description_options,
235 const MediaSessionOptions& session_options,
236 const ContentInfo* offer_content,
237 const SessionDescription* offer_description,
238 const ContentInfo* current_content,
239 const SessionDescription* current_description,
240 const TransportInfo* bundle_transport,
241 const AudioCodecs& audio_codecs,
242 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200243 SessionDescription* answer,
244 IceCredentialsIterator* ice_credentials) const;
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000245
zhihuang1c378ed2017-08-17 14:10:50 -0700246 bool AddVideoContentForAnswer(
247 const MediaDescriptionOptions& media_description_options,
248 const MediaSessionOptions& session_options,
249 const ContentInfo* offer_content,
250 const SessionDescription* offer_description,
251 const ContentInfo* current_content,
252 const SessionDescription* current_description,
253 const TransportInfo* bundle_transport,
254 const VideoCodecs& video_codecs,
255 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200256 SessionDescription* answer,
257 IceCredentialsIterator* ice_credentials) const;
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000258
zhihuang1c378ed2017-08-17 14:10:50 -0700259 bool AddDataContentForAnswer(
260 const MediaDescriptionOptions& media_description_options,
261 const MediaSessionOptions& session_options,
262 const ContentInfo* offer_content,
263 const SessionDescription* offer_description,
264 const ContentInfo* current_content,
265 const SessionDescription* current_description,
266 const TransportInfo* bundle_transport,
267 const DataCodecs& data_codecs,
268 StreamParamsVec* current_streams,
Jonas Oreland1cd39fa2018-10-11 07:47:12 +0200269 SessionDescription* answer,
270 IceCredentialsIterator* ice_credentials) const;
zhihuang1c378ed2017-08-17 14:10:50 -0700271
272 void ComputeAudioCodecsIntersectionAndUnion();
jiayl@webrtc.orge7d47a12014-08-05 19:19:05 +0000273
Steve Anton8f66ddb2018-12-10 16:08:05 -0800274 bool is_unified_plan_ = false;
ossu075af922016-06-14 03:29:38 -0700275 AudioCodecs audio_send_codecs_;
276 AudioCodecs audio_recv_codecs_;
zhihuang1c378ed2017-08-17 14:10:50 -0700277 // Intersection of send and recv.
ossu075af922016-06-14 03:29:38 -0700278 AudioCodecs audio_sendrecv_codecs_;
zhihuang1c378ed2017-08-17 14:10:50 -0700279 // Union of send and recv.
280 AudioCodecs all_audio_codecs_;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000281 RtpHeaderExtensions audio_rtp_extensions_;
282 VideoCodecs video_codecs_;
283 RtpHeaderExtensions video_rtp_extensions_;
284 DataCodecs data_codecs_;
jbauch5869f502017-06-29 12:31:36 -0700285 bool enable_encrypted_rtp_header_extensions_ = false;
zhihuang1c378ed2017-08-17 14:10:50 -0700286 // TODO(zhihuang): Rename secure_ to sdec_policy_; rename the related getter
287 // and setter.
288 SecurePolicy secure_ = SEC_DISABLED;
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000289 const TransportDescriptionFactory* transport_desc_factory_;
290};
291
292// Convenience functions.
293bool IsMediaContent(const ContentInfo* content);
294bool IsAudioContent(const ContentInfo* content);
295bool IsVideoContent(const ContentInfo* content);
296bool IsDataContent(const ContentInfo* content);
deadbeef0ed85b22016-02-23 17:24:52 -0800297const ContentInfo* GetFirstMediaContent(const ContentInfos& contents,
298 MediaType media_type);
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000299const ContentInfo* GetFirstAudioContent(const ContentInfos& contents);
300const ContentInfo* GetFirstVideoContent(const ContentInfos& contents);
301const ContentInfo* GetFirstDataContent(const ContentInfos& contents);
Steve Antonad7bffc2018-01-22 10:21:56 -0800302const ContentInfo* GetFirstMediaContent(const SessionDescription* sdesc,
303 MediaType media_type);
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000304const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc);
305const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc);
306const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc);
307const AudioContentDescription* GetFirstAudioContentDescription(
308 const SessionDescription* sdesc);
309const VideoContentDescription* GetFirstVideoContentDescription(
310 const SessionDescription* sdesc);
311const DataContentDescription* GetFirstDataContentDescription(
312 const SessionDescription* sdesc);
Taylor Brandstetterdc4eb8c2016-05-12 08:14:50 -0700313// Non-const versions of the above functions.
314// Useful when modifying an existing description.
Steve Anton36b29d12017-10-30 09:57:42 -0700315ContentInfo* GetFirstMediaContent(ContentInfos* contents, MediaType media_type);
316ContentInfo* GetFirstAudioContent(ContentInfos* contents);
317ContentInfo* GetFirstVideoContent(ContentInfos* contents);
318ContentInfo* GetFirstDataContent(ContentInfos* contents);
Steve Antonad7bffc2018-01-22 10:21:56 -0800319ContentInfo* GetFirstMediaContent(SessionDescription* sdesc,
320 MediaType media_type);
Taylor Brandstetterdc4eb8c2016-05-12 08:14:50 -0700321ContentInfo* GetFirstAudioContent(SessionDescription* sdesc);
322ContentInfo* GetFirstVideoContent(SessionDescription* sdesc);
323ContentInfo* GetFirstDataContent(SessionDescription* sdesc);
324AudioContentDescription* GetFirstAudioContentDescription(
325 SessionDescription* sdesc);
326VideoContentDescription* GetFirstVideoContentDescription(
327 SessionDescription* sdesc);
328DataContentDescription* GetFirstDataContentDescription(
329 SessionDescription* sdesc);
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000330
deadbeef7914b8c2017-04-21 03:23:33 -0700331// Helper functions to return crypto suites used for SDES.
Benjamin Wrighta54daf12018-10-11 15:33:17 -0700332void GetSupportedAudioSdesCryptoSuites(
333 const webrtc::CryptoOptions& crypto_options,
334 std::vector<int>* crypto_suites);
335void GetSupportedVideoSdesCryptoSuites(
336 const webrtc::CryptoOptions& crypto_options,
337 std::vector<int>* crypto_suites);
338void GetSupportedDataSdesCryptoSuites(
339 const webrtc::CryptoOptions& crypto_options,
340 std::vector<int>* crypto_suites);
deadbeef7914b8c2017-04-21 03:23:33 -0700341void GetSupportedAudioSdesCryptoSuiteNames(
Benjamin Wrighta54daf12018-10-11 15:33:17 -0700342 const webrtc::CryptoOptions& crypto_options,
Guo-wei Shieh521ed7b2015-11-18 19:41:53 -0800343 std::vector<std::string>* crypto_suite_names);
deadbeef7914b8c2017-04-21 03:23:33 -0700344void GetSupportedVideoSdesCryptoSuiteNames(
Benjamin Wrighta54daf12018-10-11 15:33:17 -0700345 const webrtc::CryptoOptions& crypto_options,
Guo-wei Shieh521ed7b2015-11-18 19:41:53 -0800346 std::vector<std::string>* crypto_suite_names);
deadbeef7914b8c2017-04-21 03:23:33 -0700347void GetSupportedDataSdesCryptoSuiteNames(
Benjamin Wrighta54daf12018-10-11 15:33:17 -0700348 const webrtc::CryptoOptions& crypto_options,
Guo-wei Shieh521ed7b2015-11-18 19:41:53 -0800349 std::vector<std::string>* crypto_suite_names);
350
Steve Antonfa2260d2017-12-28 16:38:23 -0800351// Returns true if the given media section protocol indicates use of RTP.
352bool IsRtpProtocol(const std::string& protocol);
353
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000354} // namespace cricket
355
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200356#endif // PC_MEDIASESSION_H_