- to: bluetooth.connected ? bluetooth.duration : player.duration
- enabled: bluetooth.connected == false
- function getPosition() {
- if (bluetooth.connected && bluetooth.position) {
- return player.time2str(bluetooth.position)
- }
- return player.time2str(player.position)
- }