From 28f0f98eb17d88ed3f86a515b867cdfd89258609 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 25 Mar 2019 06:19:44 -0700 Subject: [PATCH] Add note about when methods were added in usage.md --- docs/usage.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index f8844447..dac1cc92 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -191,6 +191,8 @@ webamp.setTracksToPlay([ Play the previous track. +**Since** 1.3.0 + ```JavaScript webamp.previousTrack(); ``` @@ -199,6 +201,8 @@ webamp.previousTrack(); Play the next track. +**Since** 1.3.0 + ```JavaScript webamp.nextTrack(); ``` @@ -207,6 +211,8 @@ webamp.nextTrack(); Seek forward n seconds in the current track. +**Since** 1.3.0 + ```JavaScript webamp.seekForward(10); ``` @@ -215,6 +221,8 @@ webamp.seekForward(10); Seek backward n seconds in the current track. +**Since** 1.3.0 + ```JavaScript webamp.seekBackward(10); ``` @@ -223,6 +231,8 @@ webamp.seekBackward(10); Seek to a given time within the current track. +**Since** Unreleased + ```JavaScript webamp.seekToTime(15.5); ``` @@ -231,6 +241,8 @@ webamp.seekToTime(15.5); Get the current "playing" status. The return value is one of: `"PLAYING"`, `"STOPPED"`, or `"PAUSED"`. +**Since** Unreleased + ```JavaScript const isPlaying = webamp.getMediaStatus() === "PLAYING"; ``` @@ -239,6 +251,8 @@ const isPlaying = webamp.getMediaStatus() === "PLAYING"; Pause the current track. +**Since** 1.3.0 + ```JavaScript webamp.pause(); ``` @@ -247,6 +261,8 @@ webamp.pause(); Play the current track. +**Since** 1.3.0 + ```JavaScript webamp.play(); ``` @@ -255,6 +271,8 @@ webamp.play(); Stop the currently playing audio. Equivilant to pressing the "stop" button. +**Since** unreleased + ```JavaScript webamp.stop(); ``` @@ -323,6 +341,8 @@ unsubscribe(); After `.close()`ing this instance, you can reopen it by calling this method. +**Since** 1.3.0 + ```JavaScript const icon = document.getElementById('webamp-icon');