Skip to content

MediaComposition GetThumbnailsAsync returns the first thumbnail regardless of the provided timestamps. #5049

Open
@ianeuman

Description

@ianeuman

Describe the bug

When using the GetThumbnailsAsync method inside the MediaComposition class, all the thumbnails returned are the same as the first thumbnail regardless of the timestamps provided to generate the thumbnails.

Steps to reproduce the bug

  1. Clone this github repository. https://github.com/ianeuman/winappsdk-thumbnail
  2. Build and run the solution.
  3. All the frames are the same regardless of the specified timestamps.

Expected behavior

The frames returned are different, representing each provided timestamp.

Screenshots

No response

NuGet package version

Windows App SDK 1.6.3: 1.6.250108002

Packaging type

Unpackaged

Windows version

Windows 11 version 23H2 (22631, November 2023 Update)

IDE

Visual Studio 2022

Additional context

The current workaround is to manually call GetThumbnailAsync for each timestamp, but that's around 4-5 times slower.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions