I am trying to embed an MP4 into a Grafana dashboard on an Ubuntu 18.04 server. I have entered this into the “text” dashboard in HTML mode.
<video width="320" height="240" controls autoplay loop>
<source src="/home/testing/Downloads/video.mp4" type="video/mp4">
Your browser does not support the video tag.
This shows the controls but does not show the video. When I put the same code in an html page on its own, however, the video shows as expected.
I have also placed a video in
/var/www/html but this fails to show too.
What am I doing wrong here?
disable_sanitize_html under the section panels in your Grafana ini file, or set env variable
video tag is native HTML5 - why would that have been broken?
I can now play the video, but it does not loop as it is supposed to. What am I doing wrong now?
Honestly, I am not sure. I have tested this now on Chrome, Safari and Firefox and loop works for me on all browsers.
how did you play the video in grafana, I tried the with same video tag with type ogg
and also did GF_PANELS_DISABLE_SANITIZE_HTML=true
but video was not playing