Files
oki-podcast-reader/src/routes/api/code/audio-play.js
T

11 lines
222 B
JavaScript
Raw Normal View History

2023-07-13 00:27:14 +01:00
import { audio } from 'svelte-podcast';
// play the current audio source
2023-07-29 17:57:14 +01:00
audio.play(true);
2023-07-13 00:27:14 +01:00
2023-07-29 17:57:14 +01:00
// pause the current audio source
audio.play(false);
// invert the play state of the current audio source
2023-07-13 00:27:14 +01:00
audio.play('toggle');