Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用这条线来设置我的媒体元素位置
OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
但它停留在 00:00 为什么不能跳转到位置值
MediaOpened在尝试设置之前,您应该等待事件Position
MediaOpened
Position
OurElement.MediaOpened += (s, args) => { OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position); }