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

10 lines
238 B
JavaScript
Raw Normal View History

2023-07-13 00:27:14 +01:00
import { audio } from 'svelte-podcast';
// play the current audio source
// do nothing if it's already playing
audio.play('set');
// play the current audio if it's paused
// pause the current audio if it's playing
audio.play('toggle');