Replies: 4 comments 1 reply
-
I tried to test your plugin without succes. I do not use npm but used the zip file to get your files. I saved file PhotoSwipeVideoServicePlugin.js in the same directory as used for file photoswipe-lightbox.esm.min.js'
I used this code in my initGallery.js file in my res directory:
but this code is not working. It is also not working if I use this line as reported in your documentation.
So what are I am doing wrongly? Without your code the page works correcty with my own implementation as you can see here: |
Beta Was this translation helpful? Give feedback.
-
Well with the esm modules, this code is accepted:
However, it still does not work at my place, see the last two thumbnails in this album: With the F12-key you can investigate my code, I use a code like:
I can't run your local demo without npm. Why do you not give a link to a website which shows your implementation? |
Beta Was this translation helpful? Give feedback.
-
The attributes should be prefixed with Update the examples in the new release. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I have now a working version, see here: https://andrewolff.jalbum.net/TestVideos_PS-plugin/ This works fine on my PC, but on my iPhone the image is far too large., because the width and height are in pixels, which is not responsive. Another problem are the missing video controls (start/stop, sound on/off, sound volume), so you can't stop the video. Compare this with my implementation in thumbnails 4 and 5, I use for the last thumbnail this code:
I repeat my last question in my previous reply: Why do you not give a link to a website which shows your implementation? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I just release a photoswipe-video-service-plugin to be able to use youtube and vimeo videos.
I based on the video plugins, hoewever I am sure there is a lot of ways to improve it.
The only examples I found before it was jquery based for 4.x.
https://github.com/rsd/photoswipe-video-service-plugin
Beta Was this translation helpful? Give feedback.
All reactions