Original project is here:
http://clipplayer.codeplex.com/
It worked with previous versions of VLC
I made a simple example, for a demonstration:
[MainWindow.xaml]
Code: Select all
<Window x:Class="TestVLC.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vlc="clr-namespace:AXVLC;assembly=Interop.AXVLC"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition x:Name="r1"/>
<RowDefinition x:Name="r2" Height="20"/>
</Grid.RowDefinitions>
<WindowsFormsHost x:Name="wfh" Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Grid.ColumnSpan="3"/>
</Grid>
</Window>
[MainWindow.xaml.cs]
Code: Select all
namespace TestVLC
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
AXVLC.VLCPlugin2 vlc = new AXVLC.VLCPlugin2();
public MainWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
wfh.Child = vlc;
vlc.Dispose();
}
}
}
Errors:
Error 1 Cannot implicitly convert type 'AXVLC.VLCPlugin2' to 'System.Windows.Forms.Control'. An explicit conversion exists (are you missing a cast?) c:\users\mmm\documents\visual studio 2013\Projects\TestVLC\TestVLC\MainWindow.xaml.cs 33 25 TestVLC
Error 2 'AXVLC.VLCPlugin2' does not contain a definition for 'Dispose' and no extension method 'Dispose' accepting a first argument of type 'AXVLC.VLCPlugin2' could be found (are you missing a using directive or an assembly reference?) c:\users\mmm\documents\visual studio 2013\Projects\TestVLC\TestVLC\MainWindow.xaml.cs 34 17 TestVLC