Skip to content
XHiddenProjects edited this page May 11, 2025 · 3 revisions

This is a basic setup of how to use the MediaViewing library.

Index.html

<!DOCTYPE HTML>
 <html>
  <head>
   ...
  </head>
  <body>
    <div class="demo"></div>
    <!--For this example demo.js is the file I'll be using-->
    <script type="module" src="path_to_script.js"></script>
  </body>
</html>

demo.js

// Add or Remove other media viewing libraries 
import {startup} from 'js/es6/mediaviewer.min.js';
startup(); //Loads up the library

Use the Table to know what viewers are supported

Clone this wiki locally