Skip to content

Commit

Permalink
[media] Deprecate capability change media error (#2608)
Browse files Browse the repository at this point in the history
Deprecates "MEDIA_ERR_CAPABILITY_CHANGED" in the MediaError interface.
Also deprecates the "PLAYBACK_CAPABILITY_CHANGED" PipelineStatus
histogram.

b/321844872

(cherry picked from commit 3310388)
  • Loading branch information
osagie98 authored and anonymous1-me committed Mar 21, 2024
1 parent 45d08c6 commit 49aafc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cobalt/dom/media_error.idl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ interface MediaError {
const unsigned short MEDIA_ERR_DECODE = 3;
const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
const unsigned short MEDIA_ERR_ENCRYPTED = 5;
// The underlying playback capability has changed, the app should treat this
// as a transient error and retry playback.
// Deprecated. Capability change errors are reported with
// code MEDIA_ERR_DECODE.
const unsigned short MEDIA_ERR_CAPABILITY_CHANGED = 1000;

readonly attribute unsigned short code;
Expand Down
4 changes: 3 additions & 1 deletion tools/metrics/histograms/metadata/cobalt/enums.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histogra
<int value="21" label="PIPELINE_ERROR_EXTERNAL_RENDERER_FAILED"/>
<int value="22" label="DEMUXER_ERROR_DETECTED_HLS"/>
<int value="23" label="PIPELINE_ERROR_HARDWARE_CONTEXT_RESET"/>
<int value="24" label="PLAYBACK_CAPABILITY_CHANGED"/>
<!-- Deprecated. Capability change errors are reported with
PIPELINE_ERROR_DECODE -->
<int value="24" label="PLAYBACK_CAPABILITY_CHANGED (deprecated)"/>
</enum>


Expand Down

0 comments on commit 49aafc6

Please sign in to comment.