Skip to content

[Bug]: Collapse cannot use .mp4 & .mkv video files as a custom background #572

Description

@pha1n0q

Affected Version

Collapse 1.81.5 Preview

Bug Behavior

Attempting to use .mp4 and .mkv video files (not sure about other formats) as a custom App Background will throw an error.

Expected Behavior

Collapse should be able to playback the aforementioned video file types without an error.

Steps to reproduce

  1. Get an .mp4 or .mkv video file
  2. Use the video file as a custom background in Collapse
  3. Error

Related Issues

No response

Screenshot(s)

Example (using a random music video in a .webm container with it's video/audio stream copied into an .mp4 and .mkv container):

Recording.2024-09-08.181736.mp4

Error:

System.ArgumentNullException: ArgumentNull_Generic Arg_ParamName_Name, windowsruntimeStream
   at System.IO.WindowsRuntimeStreamExtensions.AsStreamInternal(Object, Int32, String, Boolean)
   at System.IO.WindowsRuntimeStreamExtensions.AsStream(IRandomAccessStream)
   at CollapseLauncher.Helper.Background.Loaders.MediaPlayerLoader.GetPreviewAsColorPalette(String file)
   at CollapseLauncher.Helper.Background.Loaders.MediaPlayerLoader.LoadAsync(String filePath, Boolean isImageLoadForFirstTime, Boolean isRequestInit, CancellationToken token)
   at CollapseLauncher.Helper.Background.Loaders.MediaPlayerLoader.LoadAsync(String filePath, Boolean isImageLoadForFirstTime, Boolean isRequestInit, CancellationToken token)
   at CollapseLauncher.Helper.Background.BackgroundMediaUtility.LoadBackgroundInner(String mediaPath, Boolean isRequestInit, Boolean isForceRecreateCache, ThrowExceptionAction throwAction, Action actionAfterLoaded)

Additional Information

.webm works oddly enough, as seen in the recording above.

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

    Needs TriagingThis issue needs the developer's attention to sort & prioritize.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions