Cleanup lib exports (#50)

This commit is contained in:
Ollie Taylor
2023-07-29 17:57:14 +01:00
committed by GitHub
parent bba24215eb
commit 528457fe59
59 changed files with 697 additions and 853 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
import { audio } from 'svelte-podcast';
// play the current audio source
// do nothing if it's already playing
audio.play('set');
audio.play(true);
// play the current audio if it's paused
// pause the current audio if it's playing
// pause the current audio source
audio.play(false);
// invert the play state of the current audio source
audio.play('toggle');