Add video support

This commit is contained in:
2025-12-09 15:35:59 +01:00
parent 3dd485ca89
commit 033498f630
9 changed files with 409 additions and 49 deletions

View File

@@ -22,7 +22,7 @@
<div>
<h3>Overlay assets</h3>
<p>Upload images to place on the broadcaster's overlay. Changes are visible to the broadcaster instantly.</p>
<input id="asset-file" type="file" accept="image/*" />
<input id="asset-file" type="file" accept="image/*,video/*" />
<button onclick="uploadAsset()">Upload</button>
<ul id="asset-list" class="asset-list"></ul>
<div id="asset-controls" class="panel hidden">
@@ -44,6 +44,16 @@
Maintain aspect ratio
</label>
</div>
<div class="control-grid">
<label>
Animation speed
<input id="asset-speed" type="number" min="0.1" step="0.1" value="1" />
</label>
<label class="checkbox-inline">
<input id="asset-muted" type="checkbox" />
Muted (videos)
</label>
</div>
<div class="control-actions">
<button type="button" onclick="nudgeRotation(-5)" class="secondary">Rotate left</button>
<button type="button" onclick="nudgeRotation(5)" class="secondary">Rotate right</button>