Skip to content

Commit d8a2ed6

Browse files
committed
fix: MapStaticAssets not working with video/audio dotnet/aspnetcore/pull/59325, using staticfiles for video for now
1 parent 21438a8 commit d8a2ed6

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

LuminaryVisuals/Components/App.razor

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<base href="/" />
88
<link rel="icon" type="image/png" href="Logo.png" />
9-
<link rel="preconnect" href="https://fonts.googleapis.com">
10-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11-
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
12-
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
13-
<link href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" rel="stylesheet">
14-
<link href="_content/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.css" rel="stylesheet" />
15-
<link rel="stylesheet" href="app.css" />
16-
<link href="LuminaryVisuals.styles.css" rel="stylesheet" />
17-
<script src="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.8/dist/spotlight.bundle.js"></script>
9+
<link rel="preconnect" href="@Assets["https://fonts.googleapis.com"]">
10+
<link rel="preconnect" href="@Assets["https://fonts.gstatic.com"]" crossorigin>
11+
<link href="@Assets["https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"]" rel="stylesheet">
12+
<link href="@Assets["_content/MudBlazor/MudBlazor.min.css"]" rel="stylesheet" />
13+
<link href="@Assets["https://use.fontawesome.com/releases/v5.14.0/css/all.css"]" rel="stylesheet">
14+
<link href="@Assets["_content/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.css"]" rel="stylesheet" />
15+
<link href="@Assets["app.css"]" rel="stylesheet" />
16+
<link href="@Assets[" LuminaryVisuals.styles.css"]" rel="stylesheet" />
17+
18+
<ImportMap />
1819
<HeadOutlet @rendermode="RenderModeForPage" />
1920
<PageTitle>Luminary Visuals Management</PageTitle>
2021
</head>
@@ -27,6 +28,7 @@
2728
<script src="_content/Tizzani.MudBlazor.HtmlEditor/quill-blot-formatter.min.js"></script> <!-- optional; for image resize -->
2829
<script src="https://js-de.sentry-cdn.com/3d017756cd2623df347b8da6db1a0359.min.js" crossorigin="anonymous"></script>
2930
<script src="functions.js"></script>
31+
<script src="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.8/dist/spotlight.bundle.js"></script>
3032

3133
</body>
3234

LuminaryVisuals/Components/Pages/Guest.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<div class="d-flex justify-content-center align-items-center" style="width:inherit; height:inherit;justify-content:center;position: relative; overflow: hidden; color: white;">
1414
<video autoplay muted loop id="synchron" style="position: absolute; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1;">
15-
<source src="synchronHVEC.mp4" type="video/mp4; codecs=hevc">
16-
<source src="synchron.mp4" type="video/mp4">
15+
<source src="@Assets["synchronHVEC.mp4"]" type="video/mp4; codecs=hevc">
16+
<source src="@Assets["synchron.mp4"]" type="video/mp4">
1717
Your browser does not support video.
1818
</video>
1919
<div class="text-center" style="width: inherit;height: inherit;justify-content: center;display: flex;flex-direction: column;flex-basis: inherit;

LuminaryVisuals/Components/Pages/Login.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<video autoplay muted loop id="synchron" style="position: absolute; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1;">
1010
<source src="synchronHVEC.mp4" type="video/mp4; codecs=hevc">
1111
<source src="synchron.mp4" type="video/mp4">
12-
Your browser does not support video.
12+
Your browser does not support video.
1313
</video>
1414
<div class="text-center" style="width: inherit;height: inherit;justify-content: center;display: flex;flex-direction: column;flex-basis: inherit;
1515
align-content: space-between;align-items: center;">

LuminaryVisuals/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
}
301301

302302
app.UseHttpsRedirection();
303-
303+
app.UseStaticFiles();
304304
app.MapStaticAssets();
305305
app.UseRouting();
306306
app.UseAuthentication();

0 commit comments

Comments
 (0)