Skip to content

Add support for .mkv (Matroska) files in the preview #3563

Closed

Description

@BloomyInDev

Initial Checklist

  • I understand this is a feature request and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Idea

.mkv (Matroska) files can't be opened with the Preview app: "Open with > Preview" is not offered and a click on the file asks if we want to download the file

The Preview app only registers the MIME types listed in packages/web-app-preview/src/mimeTypes.ts, and Matroska is not in the list. Browsers can play MKV files natively when the codecs are supported, so registering video/x-matroska and video/matroska is enough. This is the same approach as the MOV support in #1705.

Playback relies on native browser support, so if the file uses a codec the user doesn't have on it's device, the playback won't start (like all the other formats).

I have the fix ready and can make a pr whenever you want.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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