Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (48 sloc) 1.47 KB
title
autoPlay

Type: boolean
Default: true

Determinate if the video will automatically start playing as soon as it can do so without stopping.

<MultiCodeEditor languages={{ React: `import Microlink from '@microlink/react'

export default () => ( ) , Vanilla:

<script> document.addEventListener('DOMContentLoaded', function (event) { microlink('a', { media: 'video', autoPlay: true }) }) </script>

, Jekyll: {:.card-preview data-media='video' data-autoPlay='true'} `}} />

When a video is playing, you can stop it just clicking over the image

The default behavior is to start the video playing; You can change that passing a autoPlay: false

<MultiCodeEditor languages={{ React: `import Microlink from '@microlink/react'

export default () => ( ) , Vanilla:

<script> document.addEventListener('DOMContentLoaded', function (event) { microlink('a', { media: 'video', autoPlay: false }) }) </script>

, Jekyll: {:.card-preview data-media='video' data-autoPlay='false'} `}} />

You can’t perform that action at this time.