Meta.Vlc icon indicating copy to clipboard operation
Meta.Vlc copied to clipboard

How to initialize wpf vlc player in codeback?

Open Rust76 opened this issue 8 years ago • 1 comments

Hi,

I was wondering if it's possible to initialize the wpf element's player separately in C# code. Currently, the wpf element initializes the player when InitializeComponent() is called. I'd like to set the player manually to the wpf element.

I can always use ThreadedImageControl element and control the player separately that way but I'd like to know if it's possible to do with wpf player element. Or are ThreadedImageControl and VlcPlayer doing the same thing under the hood?

Thank you in advance.

Rust76 avatar Oct 02 '17 13:10 Rust76

ThreadedImageControl is useful for a complex UI with player, when main UI thread is stuck. Now even the main UI thread is stuck, the display will play go on. You can found some issues with it. If you want playback video with other control, check this wiki Use VlcPlayer with other controls

devkanro avatar Dec 07 '17 15:12 devkanro