VideoView on Runtime UWP SwapChainOptions
Summary
In my current Project i have an BaseProject which contains the base App and Platform specified Projects like Android, Ios, WPF, UWP etc. which includes the baseProject. I am currently Trying to Create the VideoView at Runtime with an Interface that gets called from the BaseApp: eg: void CreateMediaPlayerView();
LibVLCSharp/LibVLC Version(s)
LibVLCSharp 3.4.6
VideoLAN.LibVLC.UWP 3.3.0
Environment
each UWP Platform
Error/Bug
No Video is displayed with UWP when creating the VideoView at Runtime
Note from the UWP VideoView
Gets the swapchain parameters to pass to the LibVLCSharp.Shared.LibVLC constructor.
If you don't pass them to the LibVLCSharp.Shared.LibVLC constructor, the video
won't be displayed in your application. Calling this property will throw an System.InvalidOperationException
if the VideoView is not yet full Loaded.
I need the SwapChainOptions to initalize LibVLC but
VideoView.SwapChainOptions
causes an System.InvalidOperationException
and the event VideoView.Initialized
is never triggered
Issue Example UWP Project:
https://github.com/Pulse-Git/LibVlcSharpUwpSwapChainOptions
What is the expected correct behavior?
VideoView.Initialized
event will be triggered?
Addictional Note
in the example project i see something with: <interactions:EventTriggerBehavior EventName="Initialized">
but how do i create this at runtime? and btw the Microsoft.Xaml.Interactivity
namespace does not exists
what should i do?
best regards