Cleanup lib exports (#50)
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { audio } from 'svelte-podcast';
|
||||
|
||||
audio.load('/episode-audio.mp3');
|
||||
audio.src.load(
|
||||
// Audio file
|
||||
'/episode-audio.mp3',
|
||||
|
||||
audio.load(
|
||||
'https://media.transistor.fm/27a058c9/27b595e2.mp3',
|
||||
// Your custom metadata
|
||||
{
|
||||
title: 'SvelteKit-superforms with Andreas Söderlund',
|
||||
artwork:
|
||||
'https://images.transistor.fm/file/transistor/images/show/12899/medium_1597678946-artwork.jpg',
|
||||
guest_name: 'Andreas Söderlund',
|
||||
title: 'A deep dive into Svelte Podcast',
|
||||
artwork: '/artwork.png',
|
||||
guest_name: 'OllieJT',
|
||||
},
|
||||
|
||||
// Autoplay once loaded
|
||||
false,
|
||||
);
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { audio } from 'svelte-podcast';
|
||||
|
||||
audio.load('/episode-audio.mp3');
|
||||
audio.src.load('/episode-audio.mp3', {
|
||||
title: 'Episode Title',
|
||||
artwork: '/artwork.png',
|
||||
});
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { audio } from 'svelte-podcast';
|
||||
|
||||
audio.load('https://media.transistor.fm/27a058c9/27b595e2.mp3');
|
||||
audio.src.load('https://media.transistor.fm/27a058c9/27b595e2.mp3', {
|
||||
title: 'Episode Title',
|
||||
artwork: '/artwork.png',
|
||||
});
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// include this in your /src/app.d.ts file
|
||||
|
||||
declare module 'svelte-podcast' {
|
||||
interface EpisodeDetails {
|
||||
interface AudioMetadata {
|
||||
title: string;
|
||||
artwork: string;
|
||||
guest_name: string;
|
||||
artwork: string | null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user