You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/instructions/cpp.instructions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ applyTo:
12
12
13
13
## C++ Guidelines
14
14
15
-
- Target modern C++ (C++11) for new code. Highlight where newer C++ features (C++14, C++17) could be used to improve code quality, but for the time being do not use them. If they would be of use, comment on them.
15
+
- Target C++17 for new code. Use C++20+ features only when they are supported by the toolchain, clearly documented, and they provide a meaningful improvement in code quality.
16
16
- Always follow the guidelines at [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines)
17
17
- Highlight when existing code being studied does not follow the core guidelines and suggest improvements
18
18
- Discourage the use of C-style code within C++ (e.g. avoid memcpy(), memcmp() and char* for strings). Emphasise memory safety
<source src="dummy.mp4" type="video/ave"><!--"video/ave" required as WPE browser hint to signal hole punching -->
93
93
</video>
94
94
</div>
95
95
</body>
@@ -163,8 +163,8 @@ Configuration options are passed to AAMP using the UVE `initConfig()` method. Th
163
163
| iframeDefaultBitrate | Number | 0 | Default bitrate for iframe track selection for non-4K assets (0 = auto). |
164
164
| iframeDefaultBitrate4K | Number | 0 | Default bitrate for iframe track selection for 4K assets (0 = auto). |
165
165
| initRampdownLimit | Number | 0 | Maximum number of rampdown/retries for initial playlist retrieval at tune/seek time. |
166
-
|latencyMonitorDelay| Number |9| Delay in seconds before starting latency monitoring after tune completion. |
167
-
|latencyMonitorInterval| Number |1| Time between latency checks in seconds. Changing the value will only affect monitoring and corrective actions (how frequently latency is sampled and rate corrections are attempted). |
166
+
|latencyMonitorDelayMs| Number |5000| Delay in milliseconds before starting latency monitoring after tune completion. |
167
+
|latencyMonitorIntervalMs| Number |1000| Time between latency checks in milliseconds. Changing the value will only affect monitoring and corrective actions (how frequently latency is sampled and rate corrections are attempted). |
168
168
| licenseAnonymousRequest | Boolean | false | Enable/disable acquiring of license without token. |
169
169
| licenseKeyAcquireWaitTime | Number | 5000 | License key acquire wait time (milliseconds). |
@@ -258,6 +258,7 @@ Configuration options are passed to AAMP using the UVE `initConfig()` method. Th
258
258
| preferredAudioType | String | - | Preferred accessibility type for descriptive audio in the available audio tracks list. Same can be done with setAudioTrack API also. |
259
259
| langCodePreference | Number | 0 | Set the preferred format for language codes in other events/APIs. Available in version 2.6. Values: 0 - NO_LANGCODE_PREFERENCE, 1 - 3_CHAR_BIBLIOGRAPHIC_LANGCODE, 2 - 3_CHAR_TERMINOLOGY_LANGCODE, 3 - 2_CHAR_LANGCODE |
260
260
| preferredSubtitleLanguage | String | en | ISO-639 language code used with VTT OOB captions. |
261
+
| preferredTextLabel | String | - | Label of desired text track in the available text tracks list. |
261
262
| nativeCCRendering | Boolean | false | Use native closed caption support in AAMP. Available in version 2.6. |
262
263
| enableLiveLatencyCorrection | Boolean | false | Enable correction of playback delay during regular live streaming (non-LLD). Keeps the video close to real-time by adjusting playback speed if it drifts behind. |
263
264
| liveOffsetDriftCorrectionInterval | Number | 1 | The allowed delta from live offset configured (seconds). |
| language | String | ISO-639 text language preference. 2-character and 3-character codes are supported. |
1393
-
| languages | String | comma-delimited ISO-639 text language preference list from highest to lowest priority: ‘<HIGHEST>,<...>,<LOWEST>’ |
1396
+
| languages | String or String[]| For JSON input, either a single ISO-639 text language code string or an array of ISO-639 language codes in priority order (for example, ["eng","spa"]). When setPreferredTextLanguage is called with a non-JSON string parameter, a comma-delimited list of ISO-639 codes from highest to lowest priority (‘<HIGHEST>,<...>,<LOWEST>’) is also accepted.|
1394
1397
| rendition | String | Optional preferred rendition for automatic text selection |
1395
1398
| instreamId | String | Optional preferred instreamId (i.e. CC1, CC2) for automatic text selection |
1396
-
| label | String | Preferred Label for automatic text selection |
| accessibility.scheme | String | Preferred Accessibility scheme Id |
1400
-
| accessibility.int_value | Number | Preferred Accessibility scheme Id value |
1399
+
| label | String | Optional preferred label for automatic text selection |
1400
+
| accessibilityType | String | Optional preferred DASH role/type string for text track selection. This is used as the `preferred-text-type` value and is matched against `<Accessibility ... value=...>` entries with scheme `urn:mpeg:dash:role:2011`. |
1401
+
| accessibility | Object | Optional preferred Accessibility node criteria for text (for example, to select descriptive / VI tracks). This corresponds to the full `<Accessibility ...>` element and is independent of `accessibilityType`. |
1402
+
| accessibility.scheme | String | Preferred Accessibility scheme Id for the Accessibility node. |
1403
+
| accessibility.string_value | String | Preferred Accessibility scheme Id value for the Accessibility node when expressed as a string. |
1404
+
| accessibility.int_value | Number | Preferred Accessibility scheme Id value for the Accessibility node when expressed as a number. |
* on scaled X1 devices this is mapped directly to receiver APIs interacting with RDK CC Manager
2684
2712
* here by default will inherit X1 caption style settings as set by user through guide settings
2685
2713
* apps can override caption styling, but typically wouldn't need to do so
2686
2714
* on non-XRE devices this is implemented as a wrapper for backwards compatibility, but with limitations - only default styles will ever be applied, and with no way for app to change, and won't reflect guide settings
2687
-
2715
+
2688
2716
To use legacy XREReceiver inband closed captions, first register an event listener to discover decoder handle:
// We can enable the following once we have a thread monitoring video PTS progress and triggering subtec clock fast update when we detect video freeze. Disabled it for now for brute force fast refresh..
161
165
//#define SUBTEC_VARIABLE_CLOCK_UPDATE_RATE /* enable this to make the clock update rate dynamic*/
0 commit comments