Hello,
I have an audio player, I want audio player to be disable for the user but show the time lapsed while the song is being played.
I'll appreciate any hints.
Thanks
Omar
Solved! Go to Solution.
IN ADDITION...
You could also replicate the media player timeline bar.
>Add a slider control
>Set max to Audio1.duration
>Set min to 0
>Set DisplayMode to DisplayMode.View
>Set default to Audio1.time
Sean
Hi @omarsalgado,
Did you mean that you want the player to auto-start but users cannot pause/fast forward etc.? If this is the requirement, you can do this by setting the display mode to "View":
Regards,
Mona
Dear Mona,
Thanks for the reply...
I wanted to show only the clock of the player but when I crop it, the first thing that hides is the clock and the last is the play buttom.
Any other hint?
Thanks
Hi @omarsalgado,
Then I'm afraid that this is not available so far in PowerApps.
Regards,
Mona
To get the values of the track being played simply use AudioPlayer.value and AudioPlayer.duration
To show the current time of the track being played out of the total time, you can simply add this code to the Text of a control:
Round(Audio1.Time,0) &"/"& Round(Audio1.Duration,0)
Not entirely sure what you want exactly, but I hope this can help you.
Sean
IN ADDITION...
You could also replicate the media player timeline bar.
>Add a slider control
>Set max to Audio1.duration
>Set min to 0
>Set DisplayMode to DisplayMode.View
>Set default to Audio1.time
Sean
User | Count |
---|---|
184 | |
123 | |
90 | |
46 | |
42 |
User | Count |
---|---|
267 | |
160 | |
129 | |
81 | |
76 |