Chrome object tag autoplay not working

875 Views Asked by At

I'm not sure what I am doing wrong, but when I put this tag in:

<object width="600" class="attachment" v-for="attachmentUrl in message.attachments" :data="attachmentUrl" :key="attachmentUrl" :type="getFileType(attachmentUrl)" autoplay="false">
                    <param name="autoplay" value="false">
                </object>

The video gets rendered fine, but still auto plays. I can confirm the rendered html looks like this:

<html><head><meta name="viewport" content="width=device-width"></head><body><video controls="" autoplay="" name="media"><source src="myvideourlgoeshere" type="video/mp4"></video></body></html>

I'm using Version 67.0.3396.99 (Official Build) (64-bit) on Mac OS X.

Can someone explain what I am doing wrong here? Thanks!

0

There are 0 best solutions below