Skip to content

autoPlay

The legacy Microlink Embed SDK is no longer maintained. It keeps working and you can still use it, but it won't receive further updates. The new Microlink SDK — the microlink.io package — is the way to consume the Microlink API going forward.
Type: <boolean>
Default: true
Determine if the media will automatically start playing as soon as it can do so without stopping.
  • React
  • Vue
  • Jekyll
  • Vanilla
<template>
  <Microlink 
    url="https://www.youtube.com/watch?v=9P6rdqiybaw" 
    media="video" 
    :auto-play="true"
  />
</template>
To control the media just hover with your cursor.
The default behavior is to start the media playing; You can change that by passing autoPlay: false.
  • React
  • Vue
  • Jekyll
  • Vanilla
<template>
  <Microlink 
    url="https://www.youtube.com/watch?v=9P6rdqiybaw" 
    media="video" 
    :auto-play="false"
  />
</template>