C# embed vlc control

后端 未结 2 458
忘掉有多难
忘掉有多难 2021-01-28 13:56

I\'ve tried to embed VLC into my WPF project. I\'ve registered the axvlc.dll. Also downloaded VLC nightly build version 2.2.2

A first chance exception of

相关标签:
2条回答
  • 2021-01-28 14:24

    Kindly try Vlc.DotNet. You can get the source and samples from github.

    Even I was stuck with the same issue when trying to embed VLC plugin into my WPF project. Got success after using Vlc.DotNet.

    0 讨论(0)
  • 2021-01-28 14:41

    It appears that your issue is not about the VLC plugin. Your error message indicates badly formed XAML in your window.

    I would make sure that the XAML in your window is correct before you start looking for VLC related issues.

    Here is a stack post about how to deal with that error message

    But assuming that that stack post about bad XAML does not help you...

    Having used the AxVLC ActiveX control for a few years in a Windows Forms project I can tell you how finnicky the whole of the VLC codebase is.

    You should not need to add the AxVLCPlugin2 to your window yourself. You also should not need a WindowsFormHost control to host the AxVLC ActiveX COM component that should be available to you assuming that you have installed VLC on your computer in any form.

    If you go to your window and then toolbox, you should be able to open up a list of com components via Choose Tools and this will include a VLC com component that lets you mess with it in the visual editor. This is a less error prone approach to adding the control to your application.

    Follow this guide and you should be able to find the COM component

    Using COM Components

    That should solve your issue.

    0 讨论(0)
提交回复
热议问题