{"_id":"@alexspirgel/video-sync","_rev":"2-df668c27057687ed1c4dd4f1aa0ede33","name":"@alexspirgel/video-sync","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@alexspirgel/video-sync","version":"1.0.0","author":{"name":"Alexander Spirgel"},"description":"A class for syncing the playback of one or more video elements.","license":"MIT","keywords":["video-sync","videosync","video","sync"],"main":"video-sync.js","repository":{"type":"git","url":"git+https://github.com/alexspirgel/video-sync.git"},"homepage":"https://github.com/alexspirgel/video-sync#readme","bugs":{"url":"https://github.com/alexspirgel/video-sync/issues"},"dependencies":{"@alexspirgel/normalize-elements":"^1.0.0"},"gitHead":"7cc7026752acde8129f22d16cba077d21d7b7433","_id":"@alexspirgel/video-sync@1.0.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-BFQFSY+lQpX1Q5RcvROpWWPcMB3mJmgfMCrk512kjR6EtKOpGwHdBh3NJV0HeUWSChb9GIrMN/MYq5ATUIm2Eg==","shasum":"0b289291bee0178fac3319323682c1d4188a56e4","tarball":"https://registry.npmjs.org/@alexspirgel/video-sync/-/video-sync-1.0.0.tgz","fileCount":4,"unpackedSize":6514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuZEVCRA9TVsSAnZWagAABjEQAJ/xcn2/kx9R0WCJEZmZ\nYck5IbmebSASj/S0YbnUTL4917pSzljZB0afSToM0DEQ73CYnFZNuioLaVYW\nGj2l2VqkwOSXwoSOLUPxSlA4daTuwKQRZMt86hvlbx1YkpHqbHQbLCassc3a\noNtDc9dT1G3ZWjSTkDk0VGcxGJX/SArCSe+jfz5ayoYX++JPbYmYaY2ybGzJ\nCk0L+URsK3eeuJ9RE0xZ2xGa1EI4lzq1ShZe51Mmcv9XO14Kk6ww+IqwK3nL\ndIlSRlg7C0ZjUY1VhzZ6I7sdPnynnhk8XhvgSBhit5M8RNtpXC13nRyBKWoq\nKAzh8MzAb/HdA0YtKHajUZC+KXGbdcKw9WxynVKmrunsrje75SxrIr7Zxnbh\nXJORd5FIXNYGk9416sTxxnqVk1PkIno+nJLce5LSvkPSDUqKDu9pDwr+qYDT\nS02OxYFnlQC9A0aNNwqluPqyhE+I3mpxtXmP56RCB0FrS5ZFU2GPkAYYEIbt\nVbistkwCNBEyuC6UxAeMRnSpt6YFA94E5RPqncng7bVEauXZ66fB7wti7ltN\n6Cx9+B/Xlh0AhgI62FvNQhTUdRfxjeaaD3Sp1PZIEGg7JDI55kg0T12xDREx\nynVh8wfJAgobchk7gbISstlXF2pv8aJZbjmo7C0Be0w+qptNL07S/b+0ymS8\njrgI\r\n=kxSc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeQw94LK2prnupbs784z8wof9mhnbvTq5Z0c8DKPDRJwIhALtafujaxaesupNLhqz0cX3LdYoMt9jkSriBAXEYRoU2"}]},"_npmUser":{"name":"alexspirgel","email":"spirgel.alexander@gmail.com"},"directories":{},"maintainers":[{"name":"alexspirgel","email":"spirgel.alexander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/video-sync_1.0.0_1639551253812_0.8071625681628654"},"_hasShrinkwrap":false},"2.0.0":{"name":"@alexspirgel/video-sync","version":"2.0.0","author":{"name":"Alexander Spirgel"},"description":"A class for syncing the playback of one or more video elements.","license":"MIT","keywords":["video-sync","videosync","video","sync"],"main":"src/video-sync.js","scripts":{"start":"webpack"},"repository":{"type":"git","url":"git+https://github.com/alexspirgel/video-sync.git"},"homepage":"https://github.com/alexspirgel/video-sync#readme","bugs":{"url":"https://github.com/alexspirgel/video-sync/issues"},"dependencies":{"@alexspirgel/normalize-elements":"^1.0.2"},"devDependencies":{"terser-webpack-plugin":"^5.2.5","webpack":"^5.65.0","webpack-cli":"^4.9.1"},"gitHead":"9aee0fb3f34a4ff2e100d9ad49dadf81194e4cec","_id":"@alexspirgel/video-sync@2.0.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-mLcjxQkZiQ6euXnJ6O51CR69GIUw7LDLsSDKV5T3uLHJ0vXxYnrQL7cdmTSWK4VAvgu5WiG/e0GpYD9BthN4Tg==","shasum":"7b655aebe0ebbe59361c09e8ca588a85962a6811","tarball":"https://registry.npmjs.org/@alexspirgel/video-sync/-/video-sync-2.0.0.tgz","fileCount":4,"unpackedSize":15777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwXZWCRA9TVsSAnZWagAAVBQQAJGAcetdPqaEgzky8dWu\nkWGF7D0R/n8oYD9eVuPR8uJlApryd3AxK2IMruTn2qa0zTpAt1s90+g5Q8A4\n5+M2EmKxSH6YoJrQgbrLcyVatDdBSHg2EPPIH1hw3y8/9bJ9UKEqzyjvQc3K\nHqHKlRzTMuoyPZ5fxvbX7wjgFUgW4R3wlMu90lZnx831b+bJl5tSIiCS+PtF\nb0/HfKjl0TiTI44DblGEmdH4KCgGWc7sQOM6mHmVm8JxkIhts6lqft40k15X\n8Bt3l20qC+5v7XSws3v06AoV2nIvvl/2j4W/UMlzenBGA4rbPfifuYENGFnq\n08qhjwINw0TtSjunAwiC8WSrvwIVr6ZI2ECDV6y7aK5fxQWFFTGeejTVoq3u\np3f5XfnTlyQeRpkhXBy1eRA61lmp2vDRTu8aLKUAgQkMFbjCIW2VMCv+/Nfb\nwE1DnFbVEjxdp0SXUk6IY+DOChsBXBVocE7eFaNhUiPxNJTG8A/OxL5WvDMh\noiazguow7PgJtqwlHmPKXfr9DYZguGAT872q4RcFumYUJ6fciPRYhr+FYyM0\nTs7zysqbldLVFN0DyOvcPYrHPi0QI30F2WRNCPnnAM834cJmotkXb9M99ljP\nPicz3RU+COXDgoDJ8l5Ax8waHO6jBLZJwPylwykMa6G+cfODgguHcqFagg9r\ndqtC\r\n=fu4f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtd9fM2MQlZHaG9quSL9Oc2M+HRhoVOrIX1DAnFIvtdAiASk3kvgzUeLqAMMYIP10FT7ihkwSnAOciHQ7AhhiWTbQ=="}]},"_npmUser":{"name":"alexspirgel","email":"spirgel.alexander@gmail.com"},"directories":{},"maintainers":[{"name":"alexspirgel","email":"spirgel.alexander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/video-sync_2.0.0_1640068694437_0.5360866359721563"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-15T06:54:13.768Z","1.0.0":"2021-12-15T06:54:13.938Z","modified":"2022-04-04T12:41:47.318Z","2.0.0":"2021-12-21T06:38:14.554Z"},"maintainers":[{"name":"alexspirgel","email":"spirgel.alexander@gmail.com"}],"description":"A class for syncing the playback of one or more video elements.","homepage":"https://github.com/alexspirgel/video-sync#readme","keywords":["video-sync","videosync","video","sync"],"repository":{"type":"git","url":"git+https://github.com/alexspirgel/video-sync.git"},"author":{"name":"Alexander Spirgel"},"bugs":{"url":"https://github.com/alexspirgel/video-sync/issues"},"license":"MIT","readme":"# VideoSync\r\nA class for syncing the playback of one or more video elements.\r\n\r\n<a href=\"http://alexanderspirgel.com/video-sync/demo\" target=\"_blank\">View the demo →</a>\r\n\r\n## Installation\r\n\r\n### Using NPM:\r\n\r\n```js\r\nnpm install @alexspirgel/video-sync\r\n```\r\n\r\n```js\r\nconst VideoSync = require('@alexspirgel/video-sync');\r\n```\r\n\r\n### Using a script tag:\r\n\r\nDownload the normal or minified script from the `/dist` folder.\r\n\r\n```html\r\n<script src=\"path/to/video-sync.js\"></script>\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nconst videoSync = new VideoSync({\r\n\tsyncedVideoElements: '.video',\r\n\tprimarySyncedVideoElement: '.video--primary'\r\n});\r\n```\r\n\r\n## Options\r\n\r\n### `syncedVideoElements`\r\n\r\nThe video elements to sync.\r\n\r\n### `primarySyncedVideoElement`\r\n\r\nManually set a primary video element. The primary video element is what the other video elements sync to. If left unset, a one of the `syncedVideoElements` will be chosen automatically.\r\n\r\n### `syncFrequency`\r\n\r\nThe frequency (in milliseconds) to update the playback rate of the video when actively syncing playback. If left unset, a default value of 250 will be used.\r\n\r\n### `minimumPlaybackRate`\r\n\r\nThe minimum playback rate to be set when syncing the playback of the videos. If left unset a value of 0.33 will be used.\r\n\r\n### `maximumPlaybackRate`\r\n\r\nThe maximum playback rate to be set when syncing the playback of the videos. If left unset a value of 3.00 will be used.\r\n\r\n### `debug`\r\n\r\nIf true, helpful debugging messages will be logged to the console. Defaults to false.","readmeFilename":"README.md"}