Bug 1881589 - report current state. r=jrmuizel

[current state](https://searchfox.org/mozilla-central/rev/9982a76fe95c70f7c2dca2d60bd78e015313924d/dom/media/platforms/wmf/metrics.yaml#72-74) was added in bug 1873394, but we forgot to report it.

Differential Revision: https://phabricator.services.mozilla.com/D202488
This commit is contained in:
alwu 2024-02-22 19:45:32 +00:00
parent eb365363c0
commit e3cc3beaaa

View file

@ -1232,6 +1232,7 @@ bool ExternalEngineStateMachine::IsCDMProxySupported(CDMProxy* aProxy) {
void ExternalEngineStateMachine::ReportTelemetry(const MediaResult& aError) {
glean::mfcdm::ErrorExtra extraData;
extraData.errorName = Some(aError.ErrorName());
extraData.currentState = Some(nsAutoCString{StateToStr(mState.mName)});
nsAutoCString resolution;
if (mInfo) {
if (mInfo->HasAudio()) {