Html5 <audio> tag in Markdown cell JupyterHub

Hello,

Do simple <audio> tags in a markDown cell with a local audio file are supposed to work in JupyterHub ? The same notebook has working sound when the notebook is opened in a local JupyterLab server.

S.

Nobody knows, really ??

Hey, we need more information to resolve your issue.

  • Can you paste the audio tag?
  • Does it reference a local audio file, and if so, is it present in your remote JupyterLab environment?
  • Are there any errors in your console when opening your Browser’s dev tools?
  • Are you running the same JupyterLab versions locally and remotely?
  • What does “it’s not working” mean? Are there any errors?

Hello,

This is a simple html audio tag, like this one

<audio src="sample-3s.wav" controls/>

I have written a simple notebook with the Python kernel, a Markdown cell with the above tag, the “sample.wav” file uploaded in the notebook’s folder. When open in a local Jupyter lab (4.5.7), I got the followingn (you see that the sample is 3s length and is playing):

but the same notebook run on a Jupyter Hub (Tljh distribution, Jupyter lab 4.4.7) does not correctly recognize the sample and clicking the play button leaves 0:00/0:00 and no sound is playing.

Can you share the javascript console logs, especially any errors?

Semi related, we are considering adding a dedicated renderer for encoded audio/video files in a future JupyterLab version: Added support for rendering audio and video mime types by itsmevichu · Pull Request #17767 · jupyterlab/jupyterlab · GitHub

Nothing interesting I think: