Open stevefatsg opened 6 years ago
I have the same error. The reason for the error is the property VideoCaptureElement.HasInitialized
from the base class MediaElementBase
. The property is always false when the VideoCaptureElement
is added at Runtime. When these set manuelly to true the Webcam Video are showing as expected.
When VideoCaptureElement is added in XAML I can correctly show my webcam video. If, instead, I add it runtime (see following code), after assigning the VideoCaptureDevice property, MediaFailed is fired ("Capture device not found or could not be created")