Open tmontney opened 6 years ago
A workaround has been posted here : https://stackoverflow.com/q/46779644/2663813 In a nutshell, you need to ignore the result of SetMedia if you don't use it:
[null]$Plyr.SetMedia($Cameras[$i])
or
$null = $Plyr.SetMedia($Cameras[$i])
It only solves a part of the issue : The library should not make access violation exceptions, even in case of a bad usage.
Sent patch to the VideoLan's mailing list : https://mailman.videolan.org/pipermail/vlc-devel/2017-October/115858.html
As discussed on Gitter, the following code does not work in PowerShell. Tested in x86 and x64 PowerShell. PowerShell version is 5.1.15063.502, running Windows 10 x64 1703. Error is System.AccessViolationException (Vlc.DotNet.Core.Interops.VlcManager.GetMediaStats(Vlc.DotNet.Core.Interops.VlcMediaInstance) ).