Closed namcigar closed 3 years ago
try this when app closing
mediaElement.Dispose();
Thank you, I tried that too but it's still the same. As you can see in this log messages:
[11:04.968 | DBG | Engine.Commands ] Dispose Entered. Waiting for Command Manager processor to stop.
[11:04.968 | DBG | Engine.Commands ] Dispose is waiting for pending direct commands.
[11:04.968 | DBG | Engine.Commands ] Dispose is closing media.
[11:04.985 | INF | Container ] OnStreamReadInterrupt was requested an immediate read exit.
The form is hanged again.
Any ideas?
Thank you,
I tried another workaround:
Go to this file
Comment out some lines in method OnDisposing() like this:
// wait for any pending direct commands (unlikely)
//this.LogDebug(Aspects.EngineCommand, "Dispose is waiting for pending direct commands.");
//while (IsDirectCommandPending)
// Task.Delay(Constants.DefaultTimingPeriod).Wait();
//this.LogDebug(Aspects.EngineCommand, "Dispose is closing media.");
try
{
// Execute the close media logic directly
//CommandCloseMedia();
PostProcessDirectCommand(DirectCommandType.Close, null, false);
}
catch (Exception ex)
{
this.LogError(Aspects.EngineCommand, "Dispose had issues closing media. This is most likely a bug.", ex);
}
then it worked!
But I still wondering why so I asked for help from you all.
This package is working fine with local files or hosted (web) files but streaming part isn't good. Stream latency, buffering etc. I think author should fix these parts but he is seems busy.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Windows form hang forever
I used FFME in a simple windows form project (host media element with ElementHost) and it hanged when I play a video and hit Close button. Please help.
Issue Categories
Version Information
Steps to Reproduce