Can Cloudinary video pause if scroll out of viewport
veggie
Member Posts: 3 ✭
Answers
-
Hi @veggie ,
Thanks for reaching out.
Yes, you can use the
autoplayMode
config and set it toon-scroll
achieve this. More here:- https://cloudinary.com/documentation/video_player_customization#additional_common_configuration
- https://cloudinary.com/documentation/video_player_api_reference#autoplaymode
Hope this helps.
Kind Regards,
Thomas
0 -
thanks for the reply, the links you gave seem to be only for vanilla JS, is there any info using React? Thanks
0 -
@veggie the examples in our docs are not in any particular framework, they are general examples which can be carried over to any modern JS framework.
Please take a look at https://cloudinary.com/documentation/video_player_react_tutorial which shows you how to use the Cloudinary Video player with react.
Kind Regards,
Thomas
0