Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoplay not working without any trigger link #161

Open
alicankablan opened this issue Dec 5, 2018 · 1 comment
Open

Autoplay not working without any trigger link #161

alicankablan opened this issue Dec 5, 2018 · 1 comment

Comments

@alicankablan
Copy link

alicankablan commented Dec 5, 2018

My html video is not playing auto at document ready

Here is my html :
<video src="myvideo.mp4" width="800" height="450" poster="" preload="auto" controls="controls" autobuffer="true" autoplay="autoplay" onended="lightcase.close();" style="width: 800px; height: 450px; max-width: 800px; max-height: 492px;"></video>

     function Html5Video() {
        lightcase.start({
            video: {
                width: 800,
                height: 450,
                poster: '',
                preload: 'auto',
                controls: true,
                autobuffer: true,
                autoplay: true,
                loop: false,
                onended: 'lightcase.close();'
            },
            href: 'myvideo.mp4',
            caption: 'caption 123',
            title: 'title 123',
          
            onFinish: {
                autoClose: function () {
                    setTimeout(function () {
                        lightcase.close();
                    }, 15000);
                }
            }
            // more options like width, height, etc.
        });
    }
@cbopp-art
Copy link
Owner

cbopp-art commented Dec 6, 2018

Hi!
Are you sure this is an issue of lightcase rather than it is something wrong with your video params and attributes?
Try to embed and autoplay your video outside of the lightcase first to make sure this is an issue of this plugin.

Thanks

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

No branches or pull requests

2 participants