# Google Analytics

Embed a Video (mp4) or Audio (mp3) File on a Dashboard

For Video Files:

  • Upload the video into an iGrafx Platform Repository e.g. an external files folder (best practice would be .mp4, as most browsers can play this file format, .webm and .ogg will also work with some browsers).
  • Open the the new object by clicking the left mouse button.
  • On the right window right mouse click on the "download file" button and choose "Copy Link Address" from the list.
  • Paste the link somewhere where you can find it, and open a new dashboard, where you want to embed your video.
  • Choose "Add new Gadget" and then "Rich Text" from the list.
  • Change the editor to code by clicking the "<>" button.
  • A new window will open where you can enter the following code: 

<p><video width="320" height="240" controls>
  <source src="/Process/InterLeon?objid=8394&type=objdata&redirpath" type="video/mp4">
</video></p>

You will have to change the link in my code snippet "/Process/InterLeon?objid=8394&type=objdata&redirpath" to the link you saved before, and you will have to eliminate everything before "/Process". Of course you can change the "width" and "height" to your needs.

  • Save your changes by pressing the "save changes" button. 

For Audio Files:

  • Upload the audio file into an iGrafx Platform Repository e.g. an external files folder (best practice would be .mp3, as most browsers can play this file format, .ogg and .wav will also work with some browsers).
  • Open the the new object by clicking the left mouse button.
  • On the right window right mouse click on the "download file" button and choose "Copy Link Address" from the list.
  • Paste the link somewhere where you can find it, and open a new dashboard, where you want to embed your audio file.
  • Choose "Add new Gadget" and then "Rich Text" from the list.
  • Change the editor to code by clicking the "<>" button.
  • A new window will open where you can enter the following code: 

<p><audio controls>
  <source src="/Process/InterLeon?objid=8396&type=objdata&redirpath" type="audio/mpeg">
</audio></p>

You will have to change the link in my code snippet "/Process/InterLeon?objid=8396&type=objdata&redirpath" to the link you saved before, and you will have to eliminate everything before "/Process". 

  • Save your changes by pressing the "save changes" button.