소스 검색

Documented .destroy() method

Dominic Szablewski 9 년 전
부모
커밋
7f580a7a17
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      README.md

+ 1 - 0
README.md 파일 보기

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