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 as a choice option #735

Closed
Tescan-group opened this issue Apr 5, 2024 · 3 comments
Closed

Autoplay as a choice option #735

Tescan-group opened this issue Apr 5, 2024 · 3 comments

Comments

@Tescan-group
Copy link

Hey there, I have two queries if you could help me out;

1- could you help me to find a way to make a checkbox to let the user decide if autoplay true or false? I plan to implement it as local storage to remember on my site.

2- Also, I have been using the plugin you did here which is great. However, how could I implement end time as art.duration? So the start time for example is 50s but end time is until the video ends.
Here is the plugin I mentioned;
#394

@zhw2590582
Copy link
Owner

zhw2590582 commented Apr 5, 2024

@Tescan-group
Copy link
Author

Tescan-group commented Apr 5, 2024

Thanks, for autoplay is it possible to do it inside settings as a toggle? I played around a bit but couldn't make it work.

Basically what I am trying to do is like the PiP button on this demo;
PiP Button Demo

But I would like to add the autoplay option you made and one more option to toggle "Auto Next" so if toggled and the player reaches the end of the video, it will do a window.location.href = nextUrl;

@Tescan-group
Copy link
Author

Have managed to get through by going through your samples, thank you. Will close the issue.

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