Refactor bumper preview functionality: update API endpoints to support rendering previews for all bumper sub-blocks, modify related query and handler to generate individual asset previews, and enhance frontend components for improved user experience with variant-specific previews. Update translations for consistency in terminology.
This commit is contained in:
@@ -195,15 +195,15 @@ export function clearBumperTemplateBackground(id: string, templateId: string) {
|
||||
})
|
||||
}
|
||||
|
||||
/** Синхронно рендерит пример заставки блока (сервер собирает ffmpeg-клип). */
|
||||
export function renderBumperPreview(id: string, templateId: string) {
|
||||
/** Синхронно рендерит примеры всех подблоков блока (сервер собирает ffmpeg-клипы). */
|
||||
export function renderBumperPreviews(id: string, templateId: string) {
|
||||
return apiRequest<void>(`/admin/channels/${id}/bumper/templates/${templateId}/preview`, {
|
||||
method: 'POST',
|
||||
})
|
||||
}
|
||||
|
||||
export function bumperPreviewPlaylistUrl(id: string, templateId: string) {
|
||||
return `/api/admin/channels/${id}/bumper/templates/${templateId}/preview/index.m3u8`
|
||||
export function bumperPreviewPlaylistUrl(id: string, templateId: string, variantId: string) {
|
||||
return `/api/admin/channels/${id}/bumper/templates/${templateId}/preview/${variantId}/index.m3u8`
|
||||
}
|
||||
|
||||
export type OverrideBody = {
|
||||
|
||||
Reference in New Issue
Block a user