如何使用滑块跟随BackgroundAudioPlayer的位置? [英] How to follow the position of a BackgroundAudioPlayer with a slider?

查看:82
本文介绍了如何使用滑块跟随BackgroundAudioPlayer的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将BackgroundAudioPlayer的光通量位置与Slider或其他东西联系起来?

How to relate the position of the flux of a BackgroundAudioPlayer to a Slider or something else?

推荐答案

采取BackgroundAudioPlayer.Instance.Track.Position ,查看它与BackgroundAudioPlayer.Instance.Track.Duration相比的位置。使用此值来定位滑块或其他内容。

Take BackgroundAudioPlayer.Instance.Track.Position, see where it is in comparison to BackgroundAudioPlayer.Instance.Track.Duration. Use this value to position slider or something.


这篇关于如何使用滑块跟随BackgroundAudioPlayer的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆