blob: 4c7e484999eb8a2141bbc44c1c4a054a1b524b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CAST_STANDALONE_SENDER_CONNECTION_SETTINGS_H_
#define CAST_STANDALONE_SENDER_CONNECTION_SETTINGS_H_
#include <string>
#include "cast/streaming/constants.h"
#include "platform/base/interface_info.h"
namespace openscreen {
namespace cast {
// The connection settings for a given standalone sender instance. These fields
// are used throughout the standalone sender component to initialize state from
// the command line parameters.
struct ConnectionSettings {
// The endpoint of the receiver we wish to connect to.
IPEndpoint receiver_endpoint;
// The path to the file that we want to play.
std::string path_to_file;
// The maximum bitrate. Default value means a reasonable default will be
// selected.
int max_bitrate = 0;
// Whether the stream should include video, or just be audio only.
bool should_include_video = true;
// Whether we should use the hacky RTP stream IDs for legacy android
// receivers, or if we should use the proper values. For more information,
// see https://issuetracker.google.com/184438154.
bool use_android_rtp_hack = true;
// Whether we should use remoting for the video, instead of the default of
// mirroring.
bool use_remoting = false;
// Whether we should loop the video when it is completed.
bool should_loop_video = true;
// The codec to use for encoding negotiated video streams.
VideoCodec codec;
};
} // namespace cast
} // namespace openscreen
#endif // CAST_STANDALONE_SENDER_CONNECTION_SETTINGS_H_
|