Closed Bug 1696034 Opened 4 years ago Closed 4 years ago

VIDEO_ENCRYPTED_PLAY_TIME_MS telemetry probe is not being recorded

Categories

(Core :: Audio/Video: Playback, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- wontfix
firefox87 --- wontfix
firefox88 --- wontfix
firefox89 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files)

It looks like bug 1685399 accidentally removed this while moving code around. We should restore the probe as it's a useful checksum on other probes.

Summary: VIDEO_ENCRYPTED_PLAY_TIME_MS is not being recorded → VIDEO_ENCRYPTED_PLAY_TIME_MS telemetry probe is not being recorded

Set release status flags based on info from the regressing bug 1685399

This code didn't make it across when we reworked how we record our playback
probes. However, it's a useful checksum to compare against our Widevine
playtime + as a general data point. This patch restores the code to record the
probe.

bryce did you want to get this in by 88?

Flags: needinfo?(bvandyk)

I think it's going to miss that boat at this stage. I'd like to get a test for it, and doing so is non-trivial as we do not have prior art and since I have a few other pots on the boil. So I think this will have to slip for now.

Flags: needinfo?(bvandyk)

This changeset adds a test to verify that playtime telemetry related to EME is
gathered after playing an encrypted file. It does so by checking that the
VIDEO_ENCRYPTED_PLAY_TIME_MS and VIDEO_CLEARKEY_PLAY_TIME_MS are the same as the
VIDEO_PLAY_TIME_MS after playing an encrypted file (this may not always happen
in the wild, but should hold for test).

To support this test I've added a new eme helper file eme_standalone.js this
is an EME helper with no extra dependencies. This allows it to be used in normal
mochitests and browser mochitests, rather than just one or the other. It is also
not coupled with the media mochitests (and manifest.js) unlike our existing
EME helpers, so should be more portable.

Expands the EME telemetry test to cover two additional cases.

  1. The EME media is loaded but before playback the src is switched to unecrypted
    media. In this case, we don't expect encrypted playtime to be recorded, but
    we will still collect clearkey playtime as the element still has clearkey
    media keys attached.
  2. Same as the above, but where the media keys are also cleared. In this case we
    do not expect either encrypted or clearkey time to be recorded.

Depends on D110446

Pushed by bvandyk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11ce9b421549 Add a browser test to verify EME related playtime telemetry is gathered. r=alwu https://hg.mozilla.org/integration/autoland/rev/5f6bfe095712 Expand EME telemetry test to cover cases involving unecnrypted media. r=alwu https://hg.mozilla.org/integration/autoland/rev/3c6dd9208e43 Restore code to record VIDEO_ENCRYPTED_PLAY_TIME_MS probe. r=alwu
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: