File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
content/tutorial/02-advanced-svelte
05-bindings/03-media-elements/+assets/app-a/src/lib
10-module-context/01-sharing-code/+assets/app-a/src/lib
src/routes/tutorial/assets/media/[...path] Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
export const tracks = [
2
2
{
3
3
// https://musopen.org/music/9862-the-blue-danube-op-314/
4
- src : 'https://sveltejs.github.io/ assets/music/strauss.mp3' ,
4
+ src : '/tutorial/ assets/media /music/strauss.mp3' ,
5
5
title : 'The Blue Danube Waltz' ,
6
6
artist : 'Johann Strauss'
7
7
} ,
8
8
9
9
{
10
10
// https://musopen.org/music/43775-the-planets-op-32/
11
- src : 'https://sveltejs.github.io/ assets/music/holst.mp3' ,
11
+ src : '/tutorial/ assets/media /music/holst.mp3' ,
12
12
title : 'Mars, the Bringer of War' ,
13
13
artist : 'Gustav Holst'
14
14
} ,
15
15
16
16
{
17
17
// https://musopen.org/music/8010-3-gymnopedies/
18
- src : 'https://sveltejs.github.io/ assets/music/satie.mp3' ,
18
+ src : '/tutorial/ assets/media /music/satie.mp3' ,
19
19
title : 'Gymnopédie no. 1' ,
20
20
artist : 'Erik Satie'
21
21
} ,
22
22
23
23
{
24
24
// https://musopen.org/music/43683-requiem-in-d-minor-k-626/
25
- src : 'https://sveltejs.github.io/ assets/music/mozart.mp3' ,
25
+ src : '/tutorial/ assets/media /music/mozart.mp3' ,
26
26
title : 'Requiem in D minor, K. 626 - III. Sequence - Lacrymosa' ,
27
27
artist : 'Wolfgang Amadeus Mozart'
28
28
}
Original file line number Diff line number Diff line change 1
1
export const tracks = [
2
2
{
3
3
// https://musopen.org/music/9862-the-blue-danube-op-314/
4
- src : 'https://sveltejs.github.io/ assets/music/strauss.mp3' ,
4
+ src : '/tutorial/ assets/media /music/strauss.mp3' ,
5
5
title : 'The Blue Danube Waltz' ,
6
6
artist : 'Johann Strauss'
7
7
} ,
8
8
9
9
{
10
10
// https://musopen.org/music/43775-the-planets-op-32/
11
- src : 'https://sveltejs.github.io/ assets/music/holst.mp3' ,
11
+ src : '/tutorial/ assets/media /music/holst.mp3' ,
12
12
title : 'Mars, the Bringer of War' ,
13
13
artist : 'Gustav Holst'
14
14
} ,
15
15
16
16
{
17
17
// https://musopen.org/music/8010-3-gymnopedies/
18
- src : 'https://sveltejs.github.io/ assets/music/satie.mp3' ,
18
+ src : '/tutorial/ assets/media /music/satie.mp3' ,
19
19
title : 'Gymnopédie no. 1' ,
20
20
artist : 'Erik Satie'
21
21
} ,
22
22
23
23
{
24
24
// https://musopen.org/music/43683-requiem-in-d-minor-k-626/
25
- src : 'https://sveltejs.github.io/ assets/music/mozart.mp3' ,
25
+ src : '/tutorial/ assets/media /music/mozart.mp3' ,
26
26
title : 'Requiem in D minor, K. 626 - III. Sequence - Lacrymosa' ,
27
27
artist : 'Wolfgang Amadeus Mozart'
28
28
}
Original file line number Diff line number Diff line change
1
+ // We have to set some policy headers due to web containers, which in turn doesn't allow us to load media files from github.
2
+ // We therefore have to proxy them through here to add the needed headers.
1
3
export async function GET ( { request, params, fetch } ) {
2
4
const request_headers = new Headers ( ) ;
3
5
You can’t perform that action at this time.
0 commit comments