Files
oki-podcast-reader/src/routes/api/code/audio-play.js
T
2023-07-29 17:57:14 +01:00

11 lines
222 B
JavaScript

import { audio } from 'svelte-podcast';
// play the current audio source
audio.play(true);
// pause the current audio source
audio.play(false);
// invert the play state of the current audio source
audio.play('toggle');