1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-21 09:59:34 +03:00

Add support to display binary video content

This commit is contained in:
Jan Oberhauser 2021-07-03 14:30:02 +02:00
parent 2e40a0e64e
commit b49202687d

View File

@ -14,6 +14,10 @@
<div v-if="!binaryData">
Data to display did not get found
</div>
<video v-else-if="binaryData.mimeType && binaryData.mimeType.startsWith('video/')" controls autoplay>
<source :src="'data:' + binaryData.mimeType + ';base64,' + binaryData.data" :type="binaryData.mimeType">
Your browser does not support the video element. Kindly update it to latest version.
</video>
<embed v-else :src="'data:' + binaryData.mimeType + ';base64,' + binaryData.data" class="binary-data" :class="embedClass"/>
</div>