The new video data property in action.
the rest!
We
added support for video 🎉.
Now, the
Microlink API provides a new field called
video for identifying streaming sources detected from the target url.
Pre-rendering is a technique for retrieving the HTML content simulating the user browser navigation.
Although it will provide better data, it will take more time to respond. Most popular services do not need it.
In order to improve the response timing, we’ve provided an auto value by default.
This means that the service will determine if the target URL needs to use the pre-rendering technique or not.
We tested that this decision speeds up the process up to 50%.
A great merit of the improvements is related with our work improving our abstract library for interacting with headless Chrome,
.
Also thanks to the
for helping us address performance issues.
Because
Microlink API can detect video, we use the new field to place the streaming source into our preview cards, via our
SDK.
We added properties to control the video, like
autoplay,
muted or
loop options.
Our fancy loading animation, claps to
👏.
We improved the transition between how the card looks before the content of the card is loaded, to give it a more natural look.
Using the new
direction API paramter for invert the media position in the card.
We added the possibility to invert the orientation of the content in the card using a new field called
reverse.
You’ll need to make sure you have version
1.7.0 or above of the
Microlink SDK.
The easiest way to consume the frontend library. Just paste the corresponding script before the closing <body>
tag:
<script type="text/javascript" src="//unpkg.com/@microlink/vanilla@latest/umd/microlink.min.js"></script>
<!-- Microlink SDK AMD bundle -->
<script type="text/javascript" src="//unpkg.com/@microlink/vanilla@latest/amd/microlink.min.js"></script>
<!-- Microlink SDK CJS bundle -->
<script type="text/javascript" src="//unpkg.com/@microlink/vanilla@latest/cjs/microlink.min.js"></script>`}</PreCode>
If you’re using Microlink from your `package.json` then you’ll need to consume the library from the NPM registry:
Vanilla version
npm install @microlink/vanilla@latest
React version
npm update @microlink/react@latest