Add autoplay, autoplayMode and playinline to CldVideoPlayer#244
Add autoplay, autoplayMode and playinline to CldVideoPlayer#244Baroshem merged 3 commits intonuxt-modules:chore/4.0.0from
Conversation
👷 Deploy request for nuxt-cloudinary-module pending review.Visit the deploys page to approve it
|
|
It seems that my prettier formatting was a bit different and unintentionally added colons and double quotes :/ |
|
Hey there, Thanks for this amazing work! You did a great job. |
|
Hi Baroshem, thank you again! :) |
|
Hey Buddy, thank you for this change! I will merge it to 4.0.0 branch and release a bigger major version at the start of next month (after all the goodies from hacktoberfest :) ) |
|
@Marcos-Bernasconi thanks for your contribution. this PR is eligible for free Cloudinary Hackatoberfest swag. Please send me an email at hacktoberfest@cloudinary.com with your name, GitHub username, and a link to the PR where I'll send further instructions. Happy Hacktoberfest! |
Summary:
Autoplay seemed to not work correctly because some props were missing. Adding autoPlay, playsinline and autoPlayMode as props resolved the problem
Types of changes
Description
I added the followings props to CldVideoPlayer:
I changed autoplayMode from a string to a union of the possible values.
Made also autoplayMode default value
alwaysso videos autoPlay correctly just by passing autoPlay = true.Resolves:#242
Checklist: