1 // Copyright 2020 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 #ifndef CAST_STANDALONE_SENDER_CONSTANTS_H_ 6 #define CAST_STANDALONE_SENDER_CONSTANTS_H_ 7 8 #include "util/chrono_helpers.h" 9 10 namespace openscreen { 11 namespace cast { 12 13 // How often should the congestion control logic re-evaluate the target encode 14 // bitrates? 15 constexpr milliseconds kCongestionCheckInterval{500}; 16 17 // Above what available bandwidth should the high-quality audio bitrate be used? 18 constexpr int kHighBandwidthThreshold = 5 << 20; // 5 Mbps. 19 20 // How often should the file position (media timestamp) be updated on the 21 // console? 22 constexpr milliseconds kConsoleUpdateInterval{100}; 23 24 // What is the default maximum bitrate setting? 25 constexpr int kDefaultMaxBitrate = 5 << 20; // 5 Mbps. 26 27 // What is the minimum amount of bandwidth required? 28 constexpr int kMinRequiredBitrate = 384 << 10; // 384 kbps. 29 30 } // namespace cast 31 } // namespace openscreen 32 33 #endif // CAST_STANDALONE_SENDER_CONSTANTS_H_ 34