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