mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00

MediaTransport is deprecated and the code is unused. No-Try: True Bug: webrtc:9719 Change-Id: I5b864c1e74bf04df16c15f51b8fac3d407331dcd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160620 Commit-Queue: Bjorn Mellem <mellem@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29923}
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
/* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
#ifndef API_TRANSPORT_MEDIA_MEDIA_TRANSPORT_CONFIG_H_
|
|
#define API_TRANSPORT_MEDIA_MEDIA_TRANSPORT_CONFIG_H_
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
#include "absl/types/optional.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// Media transport config is made available to both transport and audio / video
|
|
// layers, but access to individual interfaces should not be open without
|
|
// necessity.
|
|
struct MediaTransportConfig {
|
|
// Default constructor for no-media transport scenarios.
|
|
MediaTransportConfig() = default;
|
|
|
|
// Constructor for datagram transport scenarios.
|
|
explicit MediaTransportConfig(size_t rtp_max_packet_size);
|
|
|
|
std::string DebugString() const;
|
|
|
|
// If provided, limits RTP packet size (excludes ICE, IP or network overhead).
|
|
absl::optional<size_t> rtp_max_packet_size;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_TRANSPORT_MEDIA_MEDIA_TRANSPORT_CONFIG_H_
|