mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 21:59:31 -06:00
just a sec
This commit is contained in:
parent
f257f779a9
commit
143daf2582
3 changed files with 15 additions and 8 deletions
|
|
@ -183,15 +183,22 @@ Array.from(document.getElementsByClassName("plyr-video")).forEach((video) => {
|
|||
settings: ["loop"],
|
||||
disableContextMenu: false,
|
||||
hideControls: false,
|
||||
tooltips: { contrors: true, seek: true },
|
||||
tooltips: { controls: true, seek: true },
|
||||
iconUrl: "/assets/plyr.svg",
|
||||
listeners: {
|
||||
fullscreen: () => {
|
||||
if (player.playing) {
|
||||
setTimeout(() => {
|
||||
player.play();
|
||||
}, 1);
|
||||
|
||||
if (lightbox.pswp !== undefined) {
|
||||
console.log(lightbox.pswp.currSlide);
|
||||
}
|
||||
|
||||
// Continue playing the video
|
||||
// after it's been fullscreened.
|
||||
if (player.playing) {
|
||||
setTimeout(() => player.play(), 1);
|
||||
}
|
||||
|
||||
// Open the video as a photoswipe slide.
|
||||
lightbox.loadAndOpen(parseInt(video.dataset.pswpIndex), {
|
||||
gallery: video.closest(".photoswipe-gallery")
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue