PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

How to use photoswipe for videos?

Open kapooramit opened this issue 2 years ago • 11 comments

Hi,

I see that a photoswipe video plugin is under development but I also saw many people using photoswipe as it is for videos. But I could not find anything in docs. How can I use it for youtube videos or videos hosted on say, any other server as mp4? Can anyone share?

kapooramit avatar Apr 26 '22 16:04 kapooramit

Here is a test album for videos, feel free to investigate the code. It was a lot of work, so a video plugin is a very good idea.

acwolff avatar Apr 26 '22 17:04 acwolff

@acwolff Thanks. That is a lot of work you have done and now a lot of work for me to find out how the code is working. Is there anything as simple as photoswipe docs to help me add required attributes and initialize photoswipe to handle videos?

kapooramit avatar Apr 27 '22 18:04 kapooramit

@kapooramit when I started the project, the documentation was very limited, but it is much better now. However I got a lot of help of @dimsemenov as you can see in the list of issues. If you wish you can get all source files. Do send me in that case an email via the top link on this page: https://andrewolff.nl/index.htm

acwolff avatar Apr 27 '22 19:04 acwolff

@acwolff That looks awesome! One thing though, when sliding between videos, the video container resizes a bit jumpy. Were you able to slide in the video slides already sized appropriately before they appear?

jasonkhanlar avatar Apr 28 '22 00:04 jasonkhanlar

@acwolff That looks awesome! One thing though, when sliding between videos, the video container resizes a bit jumpy. Were you able to slide in the video slides already sized appropriately before they appear?

@kapooramit , the answer is No, but I did send you the source files, so if you can improve that, let me know!

acwolff avatar Apr 28 '22 07:04 acwolff

@kapooramit and @rsteinbakk the complete video test website is in the enclosed zip file TestVideos_PS.zip .

acwolff avatar May 12 '22 07:05 acwolff

Thank you @acwolff . This will help immensely!

kapooramit avatar May 12 '22 16:05 kapooramit

There is no files in archive

@kapooramit and @rsteinbakk the complete video test website is in the enclosed zip file [TestVideos_PS.zip]

inweb-pro avatar Aug 16 '22 03:08 inweb-pro

@kapooramit and @rsteinbakk the complete video test website is in the enclosed zip file TestVideos_PS.zip .

The zip does not have the files, only the folders.

utilsites avatar Mar 27 '23 16:03 utilsites

@kapooramit and @rsteinbakk the complete video test website is in the enclosed zip file TestVideos_PS.zip .

The zip does not have the files, only the folders.

chengwei123456 avatar Sep 17 '23 09:09 chengwei123456

This is the latest version of the source codeTestVideos_PS.zip and this time with the images and videos. View the test album.

acwolff avatar Sep 18 '23 09:09 acwolff