Shaka Player Embedded
config_names.h
Go to the documentation of this file.
1 // Copyright 2018 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef SHAKA_EMBEDDED_CONFIG_NAMES_H_
16 #define SHAKA_EMBEDDED_CONFIG_NAMES_H_
17 
18 #ifdef __OBJC__
19 # include <CoreFoundation/CoreFoundation.h>
20 #else
21 namespace shaka {
22 #endif
23 
24 #ifdef __OBJC__
25 # define SHAKA_MAKE_STRING_(name) @name
26 #else
27 # define SHAKA_MAKE_STRING_(name) name
28 #endif
29 
44 #define kDrmRetryMaxAttempts \
45  SHAKA_MAKE_STRING_("drm.retryParameters.maxAttempts")
46 
50 #define kDrmRetryBaseDelay \
51  SHAKA_MAKE_STRING_("drm.retryParameters.baseDelay")
52 
53 #define kDrmRetryBackoffFactor \
54  SHAKA_MAKE_STRING_("drm.retryParameters.backoffFactor")
55 
59 #define kDrmRetryFuzzFactor \
60  SHAKA_MAKE_STRING_("drm.retryParameters.fuzzFactor")
61 
65 #define kDrmRetryTimeout \
66  SHAKA_MAKE_STRING_("drm.retryParameters.timeout")
67 
68 #define kDelayLicenseRequestUntilPlayed \
69  SHAKA_MAKE_STRING_("drm.delayLicenseRequestUntilPlayed");
70 
75 #define kManifestRetryMaxAttempts \
76  SHAKA_MAKE_STRING_("manifest.retryParameters.maxAttempts")
77 
81 #define kManifestRetryBaseDelay \
82  SHAKA_MAKE_STRING_("manifest.retryParameters.baseDelay")
83 
86 #define kManifestRetryBackoffFactor \
87  SHAKA_MAKE_STRING_("manifest.retryParameters.backoffFactor")
88 
92 #define kManifestRetryFuzzFactor \
93  SHAKA_MAKE_STRING_("manifest.retryParameters.fuzzFactor")
94 
98 #define kManifestRetryTimeout \
99  SHAKA_MAKE_STRING_("manifest.retryParameters.timeout")
100 
105 #define kManifestDashClockSyncUri \
106  SHAKA_MAKE_STRING_("manifest.dash.clockSyncUri")
107 
112 #define kDashIgnoreDrmInfo SHAKA_MAKE_STRING_("manifest.dash.ignoreDrmInfo")
113 
117 #define kXlinkFailGracefully \
118  SHAKA_MAKE_STRING_("manifest.dash.xlinkFailGracefully")
119 
123 #define kDashDefaultPresentationDelay \
124  SHAKA_MAKE_STRING_("manifest.dash.defaultPresentationDelay")
125 
130 #define kStreamingRetryMaxAttempts \
131  SHAKA_MAKE_STRING_("streaming.retryParameters.maxAttempts")
132 
136 #define kStreamingRetryBaseDelay \
137  SHAKA_MAKE_STRING_("streaming.retryParameters.baseDelay")
138 
141 #define kStreamingRetryBackoffFactor \
142  SHAKA_MAKE_STRING_("streaming.retryParameters.backoffFactor")
143 
147 #define kStreamingRetryFuzzFactor \
148  SHAKA_MAKE_STRING_("streaming.retryParameters.fuzzFactor")
149 
153 #define kStreamingRetryTimeout \
154  SHAKA_MAKE_STRING_("streaming.retryParameters.timeout")
155 
161 #define kRebufferingGoal SHAKA_MAKE_STRING_("streaming.rebufferingGoal")
162 
166 #define kBufferingGoal SHAKA_MAKE_STRING_("streaming.bufferingGoal")
167 
171 #define kBufferBehind SHAKA_MAKE_STRING_("streaming.bufferBehind")
172 
176 #define kIgnoreTextStreamFailures \
177  SHAKA_MAKE_STRING_("streaming.ignoreTextStreamFailures")
178 
182 #define kAlwaysStreamText SHAKA_MAKE_STRING_("streaming.alwaysStreamText")
183 
187 #define kStartAtSegmentBoundary \
188  SHAKA_MAKE_STRING_("streaming.startAtSegmentBoundary")
189 
193 #define kSmallGapLimit SHAKA_MAKE_STRING_("streaming.smallGapLimit")
194 
195 #define kJumpLargeGaps SHAKA_MAKE_STRING_("streaming.jumpLargeGaps")
196 
200 #define kDurationBackoff SHAKA_MAKE_STRING_("streaming.durationBackoff")
201 
203 #define kAbrEnabled SHAKA_MAKE_STRING_("abr.enabled")
204 
205 #define kDefaultBandwidthEstimate \
206  SHAKA_MAKE_STRING_("abr.defaultBandwidthEstimate")
207 
208 #define kAbrSwitchInterval SHAKA_MAKE_STRING_("abr.switchInterval")
209 
213 #define kAbrUpgradeTarget SHAKA_MAKE_STRING_("abr.bandwidthUpgradeTarget")
214 
218 #define kAbrDowngradeTarget SHAKA_MAKE_STRING_("abr.bandwidthDowngradeTarget")
219 
224 #define kAbrMinWidth SHAKA_MAKE_STRING_("abr.restrictions.minWidth")
225 
229 #define kAbrMaxWidth SHAKA_MAKE_STRING_("abr.restrictions.maxWidth")
230 
234 #define kAbrMinHeight SHAKA_MAKE_STRING_("abr.restrictions.minHeight")
235 
239 #define kAbrMaxHeight SHAKA_MAKE_STRING_("abr.restrictions.maxHeight")
240 
245 #define kAbrMinPixels SHAKA_MAKE_STRING_("abr.restrictions.minPixels")
246 
251 #define kAbrMaxPixels SHAKA_MAKE_STRING_("abr.restrictions.maxPixels")
252 
256 #define kAbrMinBandwidth SHAKA_MAKE_STRING_("abr.restrictions.minBandwidth")
257 
261 #define kAbrMaxBandwidth SHAKA_MAKE_STRING_("abr.restrictions.maxBandwidth")
262 
264 #define kPreferredAudioLanguage SHAKA_MAKE_STRING_("preferredAudioLanguage")
265 
266 #define kPreferredTextLanguage SHAKA_MAKE_STRING_("preferredTextLanguage")
267 
268 #define kPreferredVariantRole SHAKA_MAKE_STRING_("preferredVariantRole")
269 
270 #define kPreferredTextRole SHAKA_MAKE_STRING_("preferredTextRole")
271 
272 #define kPreferredAudioChannelCount \
273  SHAKA_MAKE_STRING_("preferredAudioChannelCount")
274 
276 #define kMinWidth SHAKA_MAKE_STRING_("restrictions.minWidth")
277 
278 #define kMaxWidth SHAKA_MAKE_STRING_("restrictions.maxWidth")
279 
280 #define kMinHeight SHAKA_MAKE_STRING_("restrictions.minHeight")
281 
282 #define kMaxHeight SHAKA_MAKE_STRING_("restrictions.maxHeight")
283 
287 #define kMinPixels SHAKA_MAKE_STRING_("restrictions.minPixels")
288 
292 #define kMaxPixels SHAKA_MAKE_STRING_("restrictions.maxPixels")
293 
294 #define kMinBandwidth SHAKA_MAKE_STRING_("restrictions.minBandwidth")
295 
296 #define kMaxBandwidth SHAKA_MAKE_STRING_("restrictions.maxBandwidth")
297 
299 #define kPlayRangeStart SHAKA_MAKE_STRING_("playRangeStart")
300 
301 #define kPlayRangeEnd SHAKA_MAKE_STRING_("playRangeEnd")
302 
305 #ifndef __OBJC__
306 } // namespace shaka
307 #endif
308 
309 #endif // SHAKA_EMBEDDED_CONFIG_NAMES_H_