Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Video not working correctly with autoplay #2090

Closed
beetle120 opened this issue Oct 4, 2018 · 6 comments
Closed

Video not working correctly with autoplay #2090

beetle120 opened this issue Oct 4, 2018 · 6 comments

Comments

@beetle120
Copy link

I have added 2 images and a video to a fancybox as seen at:
https://codepen.io/beetle120/pen/vVGJEx

It doesn't autostart the slideshow when it should, when you trigger the slideshow by clicking the next image button it loops around correctly for the first 2 video plays. On the 3rd loop it skips the 1st image and fails to load the video. Tested in Firefox and Chrome.

@fancyapps
Copy link
Owner

Hi, Thanks for reporting! I'll take a look.

@fancyapps
Copy link
Owner

This has been fixed in the latest commit, demo - https://codepen.io/anon/pen/VEjqoz

@beetle120
Copy link
Author

All working. Thank you for fixing the issue.

@acwolff
Copy link

acwolff commented Oct 8, 2018

@fancyapps you use in your demoi https://codepen.io/anon/pen/VEjqoz a property fitToView whichI can't find in your documentation, so my questions are:

  1. What does the property fitToView
  2. Is there somewhere a list of all possible properties?

@fancyapps
Copy link
Owner

@acwolff There is no such option (https://github.com/fancyapps/fancybox/blob/master/src/js/core.js#L27), that must have left from the original demo created by other person who most likely ported code from v2.

@acwolff
Copy link

acwolff commented Oct 8, 2018

Thanks for your fast response and the list of possible options!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants