i use this line to set the position of the media element
OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
but he remains 00:00 why he cannot go to the position value
You must wait for the MediaOpened event before trying to set the Position
MediaOpened
Position
OurElement.MediaOpened += (s, args) => { OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position); }
Source: https://habr.com/ru/post/1315051/More articles:Search for a file with a specific name with any extension - phpHow does gzcompress work? - phpXML Anonymous Class Serialization - xml-serializationFind a class inside a class using jQuery selectors - jqueryHow to update Options object in beforeSubmit function using jQuery Forms plugin - jqueryTap scroll in Flipper view in Android? - androidC ++ Precision: String to Double - c ++How to change Git subtree merge source - gitdebugging SSIS packages - debug.writeline - sql-serverNSString gets 100 characters from the start - objective-cAll Articles