Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Then tow instance,FfmediaElement non't work #649

Open
5 tasks
kuangxj opened this issue Jul 25, 2023 · 0 comments
Open
5 tasks

Then tow instance,FfmediaElement non't work #649

kuangxj opened this issue Jul 25, 2023 · 0 comments

Comments

@kuangxj
Copy link

kuangxj commented Jul 25, 2023

Issue Title (change this title!)

Please enter a general description for the issue. Delete sections that are not relevant and provide additional sections if necessary.

Issue Categories

  • [* ] Bug
  • Feature Request
  • Question
  • Not sure

Version Information

  • NuGet Package Enter Version Number Here
  • [* ] Build From Master branch, Commit Enter commit id. Example: 704c482
  • Build from Branch Name, Commit Enter commit id. Example: 704c482

Steps to Reproduce

  1. Step 1

  2. Step 2

  3. Step 3

Expected Results

  • Result 1
  • Result 2

Sample Code

XAML

<UserControl>
        <ffme:MediaElement
            x:Name="Media"
            Panel.ZIndex="-1"
            Background="Black"
            IsDesignPreviewEnabled="False"
            LoadedBehavior="Play"
            Stretch="Fill" />
</UserControl>
<UserControl>
<TabControl ItemsSource="{Binding Items}" SelectedItem="{Binding ActiveItem}" DisplayMemberPath="DisplayName">
   <TabControl.ContentTemplate>
      <DataTemplate>
         <ContentControl s:View.Model="{Binding}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsTabStop="False"/>
      </DataTemplate>
   </TabControl.ContentTemplate>
</TabControl>
<UserControl>

C#

System.Console.WriteLine("Change Me Please!");

Command line ffplay

ffplay "hello.mp4"

Delete This Section

When I switch tabs, VS2022 out line:
[23:41.432 | WRN | Engine.Commands ] Direct Command 'Close' not accepted. Open media before closing or changing media.
MediaHashCode:10539156
[23:41.461 | DBG | Engine.Commands ] Dispose Entered. Waiting for Command Manager processor to stop.
MediaHashCode:10539156
[23:41.462 | DBG | Engine.Commands ] Dispose is waiting for pending direct commands.
MediaHashCode:10539156
[23:41.462 | DBG | Engine.Commands ] Dispose is closing media.
MediaHashCode:10539156
[23:41.492 | DBG | Engine.Commands ] Dispose completed.

In new tabItem ffme not work,i think ffme is dispose,but parent not dispose!

who help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant