Skip to content

Loop audio? #555

Closed Answered by falkoschindler
chook100 asked this question in Q&A
Mar 19, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

That's a good question, @chook100!

The HTML audio tag supports the attribute "loop". So you can simply add a loop prop:

ui.audio('https://cdn.pixabay.com/download/audio/2022/02/22/audio_d1718ab41b.mp3').props('loop')

But NiceGUI should support this feature natively. I'll add it to the public API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Answer selected by chook100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants