Skip to content

Issue reporter: WebM import and recording don't decode on the shipped Electron #343345

Open

Description

Follow-up from #342852, which turned the product build (ADO def 111) red on Unit Tests (Electron) on all 3 OSes. Examples: main CI 487717 and 487749. Details are in this comment and microsoft/vscode-engineering#4294.

What's wrong

Product builds use the Microsoft-built Electron that we ship. The distro product.json sets electronArtifactFeed: vscode-electron-prebuilt, and build/lib/electron.ts downloads Electron from that feed. PR CI and local dev use the public Electron release.

On the feed Electron, a VP8 WebM doesn't decode in a <video> element on Linux, macOS or Windows. Even a clip recorded by MediaRecorder in the same process can't be played back. On public Electron the same tests pass, including with --build.

This likely means WebM import, and possibly recording playback, doesn't work in Insiders. WebM recording predates #342852 (recordingService.ts, nativeRecordingService.ts, and the <video> in issueReporterEditorPane.ts), so the playback part may be a pre-existing limitation of the feed Electron that these new tests exposed, separate from the new import path.

I couldn't download the feed Electron on my machine, so the shipped-runtime part is inferred from CI failing identically on all 3 OSes. It isn't reproduced locally.

Tests skipped until this is fixed

To keep official Insiders building, these 4 tests are skipped with a link to this issue. That change is a temporary fix PR; I'll link it here.

  • Issue reporter media decoding › decodes real webm or explicitly rejects an unsupported container, with complete cleanup
  • Issue reporter media decoding › does not invent a duration for a playable WebM recording without duration metadata
  • Issue reporter media import lifecycle › does not present Chromium's last-frame estimate as the duration of an imported WebM
  • NativeRecordingService › encodes and decodes playable video/webm without OS capture

Asks for Giuseppe Cianci (@Giuspepe)

  1. Check whether recording playback already fails in current Insiders. If it does, the problem predates feat(issueReporter): improve wizard destinations and attachments #342852 and lives in the feed Electron.
  2. Decide the product behavior when WebM can't be decoded on the shipped runtime. Options include a different container or codec, a clear error, or getting the feed Electron fixed.
  3. Run the media tests on the feed Electron, for example through a def 111 run or scripts/test.sh with the feed build, before un-skipping them.

Co-authored with Copilot

Activity

  1. bryanchen-d commented on Oct 21, 2026

    @bryanchen-d
    CollaboratorAuthor

    The 4 WebM tests are skipped in #343347 (temporary fix PR), each with a comment linking this issue.

    Co-authored with Copilot

  2. bryanchen-d commented on Oct 21, 2026

    @bryanchen-d
    CollaboratorAuthor

    #343343 by Giuseppe Cianci (@Giuspepe) addresses this: recording now requires both encoder and decoder support for the chosen format and falls back otherwise, and the tests are no longer skipped. Leaving it to Giuseppe Cianci (@Giuspepe) to close this once it lands, including whether recording playback on older Insiders builds was already affected.

    Co-authored with Copilot

  3. abtparnian-svg commented on Oct 21, 2026

    @abtparnian-svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions