Ability to preview video using dropzone element

Using a standard html file input, the following will allow for the preview of a video after selecting a file for upload:

<input type="file" id="videoUpload">

	<video width="320" height="240" controls>
	    Your browser does not support the video tag.
	</video>

	<script>
	    function loadVid() {
	        document.getElementById("videoUpload")
	        .onchange = function(event) {
	        
	            let file = event.target.files[0];
	            let blobURL = URL.createObjectURL(file);
	            document.querySelector("video").src = blobURL;

	        }
	    }
                           
</script>

But this does not work on a dmx-dropzone. dataUrl is available for image preview, but I can’t see anything available for video preview.

Can this be added?

Community Page
Last updated: