Advertisement Videos

Main-page & brewing-page videos, scheduled by date

{isAdbConnected ? 'Machine connected' : 'Machine offline'} {#if !isAdbConnected} {/if}
Add a new video Upload the same clip twice — the main-page version and the brewing-page _long version. Auto-named brewing_adv<N> (next free 1–40, never overwrites a video in use).
{countryLabel} {#each COUNTRIES as c (c.value)} {c.label} {/each}

Writes to inter/{country}/video{country === 'tha' ? ' + flat video/' : ''}.

Used for the comment & the …VideoEnable variable.

{#if !endDate}

Blank = open-ended

{/if}
Main-page video brewing_adv<N>.mp4
{#if mainFile}

{mainFile.name} · {fmtMB(mainFile.size)}

{:else} {/if}
Brewing-page video brewing_adv<N>_long.mp4
{#if brewingFile}

{brewingFile.name} · {fmtMB(brewingFile.size)}

Plays {brewingPlaySeconds}s (length {Math.round(brewingRawSeconds)}s − {DURATION_TRIM})

{:else} {/if}

Text overlays (.png, required)

{#each [{ label: 'Thai', name: 'brewing_txt_adv.png', file: brewingTxtFile, preview: brewingTxtPreview, pick: pickBrewingTxt, clear: clearBrewingTxt }, { label: 'English', name: 'brewing_txt_adv_en.png', file: brewingTxtEnFile, preview: brewingTxtEnPreview, pick: pickBrewingTxtEn, clear: clearBrewingTxtEn }] as t (t.label)}

{t.label}

{#if t.file}
{t.label}

{t.file.name}

{:else} {/if}
{/each}
{#if pushProgress.active && submitting}

Pushing {pushProgress.name} ({pushProgress.percent}%)

{/if}

Existing videos

{#if managed.length === 0}

No web-managed videos yet. Ones you add above appear here and can be edited.

{:else}
{#each managed as v (v.slug)}
{#if v.main} {:else}
no main
{/if}
{#if v.brewing} {:else}
no brewing
{/if}

{v.name}

brewing_adv{v.n} {v.range_label} {#if v.brewing?.duration}{v.brewing.duration}s{/if} main brewing
{/each}
{/if}
{#if showReadonly}
{#each readonlyList as v (v.filename)}

{v.filename}

{/each}
{/if}
Edit video {#if editTarget}brewing_adv{editTarget.n} · change dates, rename, or replace either clip{/if}

Main-page

{#if editTarget?.main} {/if}

Brewing-page

{#if editTarget?.brewing} {/if} {#if editBrewingFile}

Plays {editBrewingPlaySeconds}s

{/if}
{#if pushProgress.active}

Pushing {pushProgress.name} ({pushProgress.percent}%)

{/if}