In the object constructor, I need to create a WPE mediaElement object:
m_videoMedia = new MediaElement();
but the class can also be created from another thread, so I need to use
Dispatcher.Invoke(DispatcherPriority.Normal,
(Action)(() => { m_videoMedia = new MediaElement(); }));
But how can I get the correct dispatcher instance in this constructor: s
source
share