Quellcode durchsuchen

Documented .destroy() method

Dominic Szablewski vor 9 Jahren
Ursprung
Commit
7f580a7a17
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      README.md

+ 1 - 0
README.md Datei anzeigen

@@ -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