Just a ping to say that we’ve recently added a function to anvil.js that can turn the above code into
import anvil.js
def onstop(e):
as_anvil_media = anvil.js.to_media(chunks)
useful if you’re working with audio/video from the browser.
It should now be in the auto complete and in the api docs.
1 Like