Prepare podcast emissions using LiveFlow
Persist scheduled emissions, expose owner-only planning controls in PostIt and publish optional presentation-only announcements on Yavsc.Org. Preserve manual broadcasting and authenticated playback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e3b4414ab1
commit
4a5a3c8844
28 changed files with 5960 additions and 29 deletions
21
src/Yavsc.Org/Views/Podcast/Announcements.cshtml
Normal file
21
src/Yavsc.Org/Views/Podcast/Announcements.cshtml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@model IReadOnlyList<Yavsc.Abstract.Streaming.PodcastAnnouncementResponse>
|
||||
@{ ViewBag.Title = Localizer["Emissions annoncees"]; }
|
||||
<h1>@Localizer["Emissions annoncees"]</h1>
|
||||
<p>@Localizer["Horaires previsionnels. La lecture des directs et replays necessite une connexion."]</p>
|
||||
<a asp-action="Index" class="btn btn-primary">@Localizer["Se connecter et ecouter les podcasts"]</a>
|
||||
@if (Model.Count == 0)
|
||||
{
|
||||
<p>@Localizer["Aucune emission annoncee pour le moment."]</p>
|
||||
}
|
||||
@foreach (var announcement in Model)
|
||||
{
|
||||
<article class="card my-3">
|
||||
<div class="card-body">
|
||||
<h2 class="h4">@announcement.Title</h2>
|
||||
<p>@announcement.OwnerName</p>
|
||||
<p><time datetime="@announcement.ScheduledStartAt.ToString("O")">@announcement.ScheduledStartAt.ToString("u")</time>
|
||||
· @Localizer["Duree prevue : {0} min", announcement.PlannedDurationMinutes]</p>
|
||||
<p style="white-space: pre-wrap">@announcement.Announcement</p>
|
||||
</div>
|
||||
</article>
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
</div>
|
||||
<div class="d-flex flex-wrap gap-2">
|
||||
<a asp-action="Index" class="btn btn-outline-primary">@Localizer["Actualiser"]</a>
|
||||
<a asp-action="Announcements" class="btn btn-outline-primary">@Localizer["Emissions annoncees"]</a>
|
||||
<a asp-controller="Donation" asp-action="Settings" class="btn btn-outline-success">@Localizer["Configurer mes dons PayPal"]</a>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -34,6 +35,7 @@ else
|
|||
{
|
||||
PodcastState.Live => Localizer["En direct"],
|
||||
PodcastState.Completed => Localizer["Replay"],
|
||||
PodcastState.Planned => Localizer["Emission preparee"],
|
||||
_ => Localizer["Direct interrompu"]
|
||||
};
|
||||
<article class="col-12 col-lg-6">
|
||||
|
|
@ -47,6 +49,10 @@ else
|
|||
@podcast.OwnerName · <time datetime="@podcast.CreatedAt.ToString("O")">@podcast.CreatedAt.ToLocalTime().ToString("g")</time>
|
||||
</p>
|
||||
<p>@Localizer["Durée : {0} s", podcast.DurationSeconds.ToString("0.##")]</p>
|
||||
@if (podcast.ScheduledStartAt.HasValue)
|
||||
{
|
||||
<p>@Localizer["Debut prevu : {0} ; duree prevue : {1} min", podcast.ScheduledStartAt.Value.ToString("u"), podcast.PlannedDurationMinutes]</p>
|
||||
}
|
||||
@if (podcast.SegmentCount > 0)
|
||||
{
|
||||
<video controls playsinline preload="none" class="w-100"
|
||||
|
|
|
|||
Loading…
Reference in a new issue