mirror of
https://github.com/arthur-pbty/syncfilm.git
synced 2026-06-03 15:07:40 +02:00
10 lines
249 B
JavaScript
10 lines
249 B
JavaScript
const fileInput = document.getElementById('fileInput');
|
|
|
|
fileInput.addEventListener('change', (e) => {
|
|
const file = e.target.files[0];
|
|
if (file) {
|
|
const url = URL.createObjectURL(file);
|
|
video.src = url;
|
|
video.load();
|
|
}
|
|
}); |