Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 627 Bytes

File metadata and controls

27 lines (20 loc) · 627 Bytes

griffith-standalone

English | 简体中文

Griffith bundled with React, React DOM and other dependencies. You can use it by add a script tag in your HTML file.

<div id="player"></div>
<script
  crossorigin
  src="https://unpkg.com/griffith-standalone/dist/index.umd.min.js"
></script>
<script>
  const target = document.getElementById('player')

  // create player instance
  const player = Griffith.createPlayer(element)

  // load video
  player.render(props)

  // dispose video
  player.dispose()
</script>

Read Griffith docs to know about props.