Dom: {
    render: ((player, container) => void);
    unmount: ((container) => void);
} = ...

Type declaration

  • render: ((player, container) => void)
      • (player, container): void
      • Renders the Player into the supplied container

        Parameters

        Returns void

        Example

        <div id="webar"></div>

        <!-- ... -->

        <script>
        // ...

        Dom.render(player, document.getElementById("webar"))
        // or
        Dom.render(player, "#webar")
        // or even
        Dom.render(player, "body")
        <script>
  • unmount: ((container) => void)
      • (container): void
      • Removes a mounted Player from the supplied container

        Parameters

        Returns void

        Example

        Dom.unmount("#webar")