Seek to audio #1636
Squigglez2
started this conversation in
Ideas / Feature Requests
Seek to audio
#1636
Replies: 2 comments 7 replies
-
Sure, that would be a great addition. Anyone up for a pull request? Here are workarounds using v = ui.video('https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4')
ui.button('Play', on_click=lambda: ui.run_javascript(f'getElement({v.id}).$el.play()', respond=False))
ui.button('Pause', on_click=lambda: ui.run_javascript(f'getElement({v.id}).$el.pause()', respond=False))
ui.button('Seek(5)', on_click=lambda: ui.run_javascript(f'getElement({v.id}).$el.currentTime = 5', respond=False)) |
Beta Was this translation helpful? Give feedback.
7 replies
-
@falkoschindler I have created a new PR following your suggestion - #1741 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to add methods to seek, and possibly play/pause ui.audio
Beta Was this translation helpful? Give feedback.
All reactions