Skip to content

Support Initializing MediaElement on a different thread ? #384

@yangbocheng

Description

@yangbocheng

support init Mediaelement in Other Thread?

We often initialize a new Media Window with a New STA Thread.
But the current Version 2019.4.30 not support it

Issue Categories

  • enhancement

Sugguest

i have tried to make a temp little change, and it seems to run well. I am not sure if it would make bugs.
An official support for it is maybe better.

  • AudioRender.cs Updating to 3.0.1 ffmpeg.  #2 events +-
    //Library.GuiContext.EnqueueInvoke(() =>Application.Current.Exit += OnApplicationExit);
    Library.GuiContext.EnqueueInvoke(() => {
    Application.Current.Dispatcher.Invoke(() =>
    {
    Application.Current.Exit += OnApplicationExit;
    });
    });
  • GuiContext.cs
    //cancel GuiDispatcher = Application.Current.Dispatcher

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions