Hello
I work with the Source Code 62051, on a Windows 7 64Bit.
If i start the Player play a movie and close the Windows Form application.
It not gets closesd fully. It hangs.
When i break the Debug i see it Hangs on the Line:
VlcContext.InteropManager.MediaPlayerInterops.Stop.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this]);
in the File VlcControl.Common function public void Stop();
However if i stop the movie before i close the app it closes fully and goes back to Visual Studio.
I tried to fix the issue with a FormClose/Closing Event without any luck. If i try to stop the movie there the same Problem happens, i guess some Reference is not there anymore.
Second Thing:
Had to fix the Take_Snapshot function in Order to compile. Otherwise it is working fine.
public void TakeSnapshot(string filePath, uint width, uint height)
{
if (VlcContext.InteropManager != null &&
VlcContext.InteropManager.MediaPlayerInterops != null &&
VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.TakeSnapshot.IsAvailable)
{
Dispatcher.BeginInvoke(DispatcherPriority.Background,
(Action)(() => VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.TakeSnapshot.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this], 0, StringToByteArray(filePath), width, height)));
}
}
private byte[] StringToByteArray(string str)
{
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
return enc.GetBytes(str);
}
Third:
When will the In Memory Snapshot function appear?
Forth:
vlcControl1.IsSeekable is missing.
vlcControl1.CanPause is missing.
Best Regrads and keep up that good Work
Really like the Api soon i use WPF as well to test that thing out :)