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.
我已经在我的 c# 应用程序中添加了 mediaplayer 控件,我可以让它播放一首 .wma 歌曲。我的问题是我想看看玩家是否在玩。有我可以使用的事件吗?或者它是一种我可以看到一首歌已经播放了多少秒的方法?
是的,您可以检查PlayState属性或处理PlayStateChange 事件。