Explorar el Código

Documented .destroy() method

Dominic Szablewski hace 9 años
padre
commit
7f580a7a17
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      README.md

+ 1 - 0
README.md Ver fichero

@@ -72,6 +72,7 @@ A `JSMpeg.Player` instance supports the following methods and properties:
72 72
 - `.play()` – start playback
73 73
 - `.pause()` – pause playback
74 74
 - `.stop()` – stop playback and seek to the beginning
75
+- `.destroy()` – stops playback, disconnects the source and cleans up WebGL and WebAudio state. The player can not be used afterwards.
75 76
 - `.volume` – get or set the audio volume (0-1)
76 77
 - `.currentTime` – get or set the current playback position in seconds
77 78