{"_id":"photoswipe-video-plugin","_rev":"1-c2cae31d15e338e59403b4a147d05a2f","name":"photoswipe-video-plugin","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"photoswipe-video-plugin","version":"1.0.1","description":"PhotoSwipe Video Plugin","main":"src/index.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/dimsemenov/photoswipe-video-plugin.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/dimsemenov/photoswipe-video-plugin/issues"},"homepage":"https://github.com/dimsemenov/photoswipe-video-plugin#readme","devDependencies":{"rollup":"^2.58.0","rollup-plugin-terser":"^7.0.2"},"gitHead":"389fa7bbf61608f34bc4ef9ed06e81a98664fe22","_id":"photoswipe-video-plugin@1.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-eTKA0lYFSlHQ+PZk+jEw8Ckvz2U/jb39WgTl9k/9ypwrzl2SDjcBKBYZm2hp6BgCZatRWlZdNVFLDx4XA7pZaQ==","shasum":"11ce9187c30d3065e0f8be9a24f93a83f2bbdc6c","tarball":"https://registry.npmjs.org/photoswipe-video-plugin/-/photoswipe-video-plugin-1.0.1.tgz","fileCount":10,"unpackedSize":27925,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFH5hXCov+rl7OEs38iZelelGrZG+DVyKQRTBhUbYxizAiBQjqOrEnVZCEHM9Pvr9YBC/Cf4RURCczR90o8hbzprdA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizBapACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtOg/8CRtnnATXczNbZkqO2rYvYDDzHQWuCKANNCu9U/+zdTvU1FOI\r\n+y65HmSNw+XtPGqVrSuE4qlH4m3UH36u4GLSUK0gw2SI7E7dsdEtuj92rWaF\r\nh1eT1sPr+ZF++TO98ueZKZ3Q4qGUuVKwi1ZZ2mONVUF5ql2EKaqFyR3SCP9I\r\npqg9m40c6BDBkki+NFzbzsW3QPugq790h3KbXr6SijAmj5Kh0TzGTCAyGp3S\r\nLbyqmkLMiNvCmZlFOqWzdYORHYQ4Vps4TfuiRWiLnUdfms7wBvnFBQmmpz7X\r\nJPl4MJRDdAC6Nu+N79oBUw1I+xnHTdwusS6nSk65daDSyJAE1fc1QD/KkRVg\r\nQeYNFOiE4Ly0a6TO3Io6Cl58zKY8CYNx6XiyJR7jm5kNV6VjfEQNqmB5UfTW\r\nJgoLlPZq3r0lD/fwTL48pQju5tWawsgWo/KGEQyuiWrsxhjHUGfY9QNB/613\r\nh3h27toD2Ae3aDIIfhhP+ceyHFvW8G6OrZrtKJRgwUN1pnNw17WZHWNxajlS\r\nf/UwFODZoQXocMZT/GH4ktGlVUK93iy+wA2NqAVYkNyoe/0/PuPr7zJf+Yq1\r\noDcvhpPctH5k1C2xuicOg0FsaYuxcD/oJw7wMk6GU26I4w2jlXRRbSem8RSg\r\nbdlJgsX0GQmSwe4Kk+HOHNIsSRE/xoEZvMI=\r\n=MFt6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dimsemenov","email":"diiiimaaaa@gmail.com"},"maintainers":[{"name":"dimsemenov","email":"diiiimaaaa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/photoswipe-video-plugin_1.0.1_1657542313260_0.04318535602758211"},"_hasShrinkwrap":false},"1.0.2":{"name":"photoswipe-video-plugin","version":"1.0.2","description":"PhotoSwipe Video Plugin","main":"src/index.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/dimsemenov/photoswipe-video-plugin.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/dimsemenov/photoswipe-video-plugin/issues"},"homepage":"https://github.com/dimsemenov/photoswipe-video-plugin#readme","devDependencies":{"rollup":"^2.58.0","rollup-plugin-terser":"^7.0.2"},"gitHead":"5e32d6589df53df2887900bcd55267d72aee57a6","_id":"photoswipe-video-plugin@1.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-skNHaalLU7rptZ3zq4XfS5hPqSDD65ctvpf2X8buvC8BpOt6XKSIgRkLzTwgQOUm9yQ8kQ4mMget7CIqGcqtDg==","shasum":"156b6a72ffa86e6c6e2b486e8ec5b48f6696941a","tarball":"https://registry.npmjs.org/photoswipe-video-plugin/-/photoswipe-video-plugin-1.0.2.tgz","fileCount":10,"unpackedSize":28428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlt6jwbnIMSig/s2nX7001h5KJYBc4oT1bQKHQAmH6oQIhAJ2k6FOfoBBbMRWB/ODNPOKxwI8oenK36bbJG4aSYYXf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizBd2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8qA//WNB/gMlX5iGzvbbdqrC4anzfqk1hoWpOY/LyD3yxmDnTq1rx\r\nncyTgO8aIv664AYldkT6ejmj933u8nSvNZeTmwLGylAWee/DQ4wF0BDAi0U6\r\nbAOVByTlQiwkA5BS5YSQb1OK8CciUlRJoW9ed+WDxL9LJz+RgNH7JY10/3Su\r\n/fG+vUgq4atN97yiKBBPQExyy+USQNRsSta9KD3KSekqxc/a8qexWctB5HC7\r\nlnRTeh7ZcwnYyK1vTaqQ7LsIjhT73szUyFdr3ZNCyysji/pimME1rdcJEVZK\r\nODqdzhVhZfdKAih8kBhK13ruqLYv3bgFHHPCOZLh8fU1eAPqyhDOzB/T0duK\r\n2RMYNPPYqMSAm80bXcfPu5rBTbHC8a4ju1g9YUaMBOUPcdpOHnszdY/xOGPY\r\n4SkEjbyPmGN3LZ/aKdq9/x8/qCevQUQjYhVv0cfZ9lyG6H2EqKH+HjRCeg8+\r\nOAYOdt7U2RSsp8TYJZSIqTDQ5Do86YN5uAJc2Ac9bMAWUp+VisNhrDKwEArR\r\nEqoB41Dj8bXaVm8ocCjMvB7QRxORbu95H0Yaj7FFj+qcCgRnyYX5arb/4gwa\r\nYn3x8wp2OHW4Vt0JJnIZ9Lbj8UT9630GXziAyag4kfSOIoCW+zFDzgpao87y\r\nzyeC0bbw0cd0F0bD3zRQaOtRfP7ZOG9ZXlA=\r\n=X3kK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dimsemenov","email":"diiiimaaaa@gmail.com"},"maintainers":[{"name":"dimsemenov","email":"diiiimaaaa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/photoswipe-video-plugin_1.0.2_1657542518211_0.5419650264457592"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-11T12:25:13.260Z","1.0.1":"2022-07-11T12:25:13.433Z","modified":"2022-07-11T12:28:38.413Z","1.0.2":"2022-07-11T12:28:38.345Z"},"maintainers":[{"name":"dimsemenov","email":"diiiimaaaa@gmail.com"}],"description":"PhotoSwipe Video Plugin","homepage":"https://github.com/dimsemenov/photoswipe-video-plugin#readme","repository":{"type":"git","url":"git+https://github.com/dimsemenov/photoswipe-video-plugin.git"},"bugs":{"url":"https://github.com/dimsemenov/photoswipe-video-plugin/issues"},"license":"ISC","readme":"The plugin is under development and for now now supports only `<video>` tag.\r\n\r\n**[> Demo <](https://dimsemenov.github.io/photoswipe-video-plugin/)**\r\n\r\n## Initialization\r\n\r\nThe plugin requires a single JS file (grab it from `dist/photoswipe-video-plugin.esm.js`) and can be initialized like this:\r\n\r\n```html\r\n <script type=\"module\">\r\nimport PhotoSwipeLightbox from './lib/photoswipe/photoswipe-lightbox.esm.js';\r\nimport PhotoSwipeVideoPlugin from './dist/photoswipe-video-plugin.esm.js';\r\n\r\nconst lightbox = new PhotoSwipeLightbox({\r\n  gallery: '#gallery',\r\n  children: 'a',\r\n  pswpModule: './lib/photoswipe/photoswipe.esm.js',\r\n});\r\n\r\nconst videoPlugin = new PhotoSwipeVideoPlugin(lightbox, {\r\n  // options\r\n});\r\n\r\nlightbox.init();\r\n</script>\r\n```\r\n\r\n## Markup\r\n\r\nIf you're using just one format:\r\n\r\n```html\r\n<a\r\n  href=\"my-video.mp4\" \r\n  data-pswp-video-src=\"my-video.mp4\"\r\n  data-pswp-width=\"800\"\r\n  data-pswp-height=\"600\"\r\n  data-pswp-type=\"video\">\r\n  <img src=\"poster.jpg\" alt=\"\" />\r\n</a>\r\n```\r\n\r\n`data-pswp-video-src` is optional, if it's not defined - `href` attribute will be used. \r\n\r\nAttributes `data-pswp-width`, `data-pswp-height` and `data-pswp-type` are required.\r\n\r\nIf you're serving multiple formats use `data-pswp-video-sources` attribute that accepts JSON strignified array:\r\n\r\n```html\r\n<a\r\n  href=\"my-video.mp4\" \r\n  data-pswp-width=\"800\"\r\n  data-pswp-height=\"600\"\r\n  data-pswp-type=\"video\"\r\n  data-pswp-video-sources='[{\"src\":\"my-video.webm\",\"type\":\"video/webm\"},{\"src\":\"my-video.mp4\",\"type\":\"video/mp4\"}]'>\r\n  <img src=\"poster.jpg\" alt=\"\" />\r\n</a>\r\n```\r\n\r\nIf you're providing the data directly via object:\r\n\r\n```js\r\n{\r\n  width: 800,\r\n  height: 600,\r\n  type: 'video',\r\n  msrc: 'poster.jpg',\r\n\r\n  // if you're using just one source\r\n  videoSrc: 'my-video.mp4',\r\n\r\n  // Or for multiple sources;\r\n  // videoSrc: [\r\n  //   { src: 'my-video.webm', type: 'video/webm' },\r\n  //   { src: 'my-video.mp4', type: 'video/mp4' }\r\n  // ] \r\n}\r\n```\r\n","readmeFilename":"readme.md"}