I#m coding a video tool for sports with the Windows Template Studio and using the Community Toolkit.MVVM. I finished this with the vlcMediaPlayer and it worked almost fine. I need the Frameback (vlc does not provide) and I like autohiding the controls (which is hard with vlc). So I decided to use the ffmediaelemrnt instead.
Almost everything is ok, only the Video is not showing!!
public MediaElement MediaElement
{
get
{
if (m_MediaElement == null)
m_MediaElement = (Application.Current.MainWindow as MainWindow)?.Media;
return m_MediaElement;
}
}
--> Could this be the problem? How do I get the (Application.Current.MainWindow as MainWindow)? in my case with no mainwindow
When I use a contentcontrol instead: the Video is showing, but the controls are not autohiding anymore
When I compile your WindowsSample, it works completly, but still shows the error Object reference not set to an instance of an object on
I would appreciate any help. Thank you in advance
Issue Categories
[ ] Question
Version Information
[ ] NuGet Package zgabi.FFME.Windows 6.02
[ ] Build From Windows Template Studio
[ ] Build from CommunityToolkit.MVVM 8.2.1
Steps to Reproduce
Project is compiling
I can control the video: Play, Pause, StepForward ... , I can hear the sound provided by the file, Controls are autohiding
Issue Title (page stays black)
I#m coding a video tool for sports with the Windows Template Studio and using the Community Toolkit.MVVM. I finished this with the vlcMediaPlayer and it worked almost fine. I need the Frameback (vlc does not provide) and I like autohiding the controls (which is hard with vlc). So I decided to use the ffmediaelemrnt instead. Almost everything is ok, only the Video is not showing!!
I'm using an observable property
instead of your implementation:
--> Could this be the problem? How do I get the (Application.Current.MainWindow as MainWindow)? in my case with no mainwindow
When I use a contentcontrol instead: the Video is showing, but the controls are not autohiding anymore
When I compile your WindowsSample, it works completly, but still shows the error Object reference not set to an instance of an object on
I would appreciate any help. Thank you in advance
Issue Categories
Version Information
Steps to Reproduce
Expected Results
Sample Code
XAML
C