{"_id":"@benshi.ai/bs-video","_rev":"31-d5d8d58735e8851d342ea706657a28f7","time":{"created":"2022-07-29T15:05:42.889Z","0.0.1":"2022-07-28T14:48:54.733Z","modified":"2022-08-01T13:56:30.518Z","0.0.2":"2022-07-28T15:16:33.880Z","0.0.3":"2022-07-28T15:46:06.017Z","0.0.4":"2022-07-29T14:37:07.503Z","0.0.5":"2022-07-29T14:58:33.540Z","0.0.6":"2022-07-29T15:02:25.671Z","0.0.7":"2022-07-29T15:05:43.123Z","0.0.8":"2022-07-29T15:11:43.891Z","0.0.9":"2022-08-01T10:09:11.662Z","0.0.10":"2022-08-01T10:39:03.166Z","0.0.11":"2022-08-01T10:48:59.523Z","0.0.12":"2022-08-01T10:58:16.339Z","0.0.13":"2022-08-01T11:17:00.256Z","0.0.14":"2022-08-01T11:41:33.979Z","0.0.15":"2022-08-01T12:53:49.090Z","0.1.0":"2022-08-01T13:56:30.413Z"},"name":"@benshi.ai/bs-video","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.7":{"name":"@benshi.ai/bs-video","version":"0.0.7","description":"Stencil Component Starter","main":"dist/index.cjs.js","module":"dist/index.js","es2015":"dist/esm/index.mjs","es2017":"dist/esm/index.mjs","types":"dist/types/index.d.ts","collection":"dist/collection/collection-manifest.json","collection:main":"dist/collection/index.js","unpkg":"dist/bs-video/bs-video.esm.js","homepage":"https://docs.benshi.ai/","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"author":{"name":"benshi.ai","email":"hi@benshi.ai","url":"https://benshi.ai"},"contributors":[{"name":"Andrés Estévez","email":"andres@benshi.ai"}],"scripts":{"build":"stencil build --docs","start":"stencil build --dev --watch --serve","test":"stencil test --spec --e2e","test.watch":"stencil test --spec --e2e --watchAll","generate":"stencil generate"},"dependencies":{"@stencil/core":"^2.13.0"},"devDependencies":{"@types/jest":"^27.0.3","jest":"^27.4.5","jest-cli":"^27.4.5","puppeteer":"^10.0.0"},"license":"MIT","gitHead":"b4afef6faa586b80aad833983392baa831fe2442","_id":"@benshi.ai/bs-video@0.0.7","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Z+DbwszkUSAlPmftpJZheAikythQOXGk0eBU4GqphbXdZ4FfLVBt6ZTwqWvBEZzGMhgU35kSDStMqoGY5qZuiA==","shasum":"2332c898b3572c47feca74728d351bfba6350e50","tarball":"https://registry.npmjs.org/@benshi.ai/bs-video/-/bs-video-0.0.7.tgz","fileCount":46,"unpackedSize":312701,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4FDj4arAhheqNvcANwnt82EcE0NJivWkD8YC6wlaRIwIgIOxcu9c58JstfERPwgB9o6QeSVJXGYsUWRd8S+lPsr8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4/dHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsIA/9Ew8Z0kxmjTiVbaO1HL5T9Gx7mRln1qdbvDT7thmVeR0Q/7q6\r\nPUYFRIARRNlSyKYD9Ic4j371CquJzLJx72Y/N2fOIA8xmcxLYVOKOYT2ZJTe\r\n/CTekFUBziMH/50B1wfM87cWNQ0xPXjnGqJmDQYKCNNH3CaneN9wtGLm6QsY\r\nWgWBqpazr65T8lPWo8LfZn1l2NlfSF1brlp7PhiUFFSLbkz0U7ET69N7R9g7\r\nvLwxJc8WqbVU8i1TGg7vcYOGEXGREqwj3wizcxfdoWKpPWtzs9grBjwxP021\r\nx73RMtIwPeCkRZFgss6v61qMBFoQjat4uL5mWcoOWuzE39nGdE/8DQescIUf\r\n4qjSLkDeyt8UeiaFD6doat8wJRlxgS7KBSGAZRYEBo8Gdsr4huy7OnXthCJc\r\nDWtotnHedJLoM2/wTfNWRnljlj8E6hYDUltwOCDReVtXV14DTkkWl8mogfyF\r\n+YBz8wuiuyXlVwrJ81HQXgKwElY/jrhyz7p8CBHUlCqfMoYI9DME27F3/VzV\r\nDuPosEKZHt/EES4EMMdTQypoS22rZYrbJqC+po2vNPF+VGXnIG0Fun1K0g72\r\nMmft251s5VSjms7KWWNL2zuib84vf6VTj8E1mt4W229ftJcjxoYdTyJXHCRk\r\nhvbUWjTNhZPd7Nu6l8mzLLpKc4vdxgDVXX4=\r\n=SqtD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aecostas","email":"aecostas@gmail.com"},"directories":{},"maintainers":[{"name":"moizh","email":"moiz.ca5114@gmail.com"},{"name":"aecostas","email":"aecostas@gmail.com"},{"name":"sergiobenshi","email":"sergio@benshi.ai"},{"name":"sergiocarracedo","email":"hi@sergiocarracedo.es"},{"name":"dxe.tang","email":"dxe.tang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bs-video_0.0.7_1659107142947_0.5632940662579424"},"_hasShrinkwrap":false},"0.1.0":{"name":"@benshi.ai/bs-video","version":"0.1.0","description":"Stencil Component Starter","main":"dist/index.cjs.js","module":"dist/index.js","es2015":"dist/esm/index.mjs","es2017":"dist/esm/index.mjs","types":"dist/types/index.d.ts","collection":"dist/collection/collection-manifest.json","collection:main":"dist/collection/index.js","unpkg":"dist/bs-video/bs-video.esm.js","homepage":"https://docs.benshi.ai/","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"author":{"name":"benshi.ai","email":"hi@benshi.ai","url":"https://benshi.ai"},"contributors":[{"name":"Andrés Estévez","email":"andres@benshi.ai"}],"scripts":{"build":"stencil build --docs","start":"stencil build --dev --watch --serve","test":"stencil test --spec --e2e","test.watch":"stencil test --spec --e2e --watchAll","generate":"stencil generate"},"dependencies":{"@stencil/core":"^2.13.0"},"devDependencies":{"@types/jest":"^27.0.3","jest":"^27.4.5","jest-cli":"^27.4.5","puppeteer":"^10.0.0"},"license":"MIT","gitHead":"1fccc2adbea5933ff9a34d7c006ba053b7ad224d","_id":"@benshi.ai/bs-video@0.1.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"integrity":"sha512-wyTrAGS4MnPaQF7PtZAic/XtiminSKY03aRoDblLOn1C8tqIbhfhRk9x6TTJH0dniLPMRmS3RqRZc/bUDBrc/g==","shasum":"d4323399439543abdc6d2180dd2ee581f4e08944","tarball":"https://registry.npmjs.org/@benshi.ai/bs-video/-/bs-video-0.1.0.tgz","fileCount":45,"unpackedSize":315936,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA6jFQEubYVmCeGoTghV2HKJKnLrbr7wqE3dhOCNjLNgIhAJP+6e8qV19/ovggaugjmB42WqVPcBSJkmmJXGoVs44k"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi59uOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnXQ/9GVvP5efvvAUQFIjPxSHdXKORj0bZnPU+Zrka2Dh6hmdtcvSM\r\nAu09YcTtpr8mjJZxlDeFc40X0c0VBjXH8NMZ62/ZlDTZ+co+VN8ys3x9GGKb\r\nrQ7A9Rt3F7IiKVeKLydSYRpFmgeQo0V0DzB51fxJ4G+VFIBuqW88Y28ypWYZ\r\nnIdWuYWo9FKOH97GX8GQhN52TveDOl+X+FuLkjiRrPqt3qonXuIRgvgYpLoc\r\nDBkLg82b9JCayKGwxCq9IAuhrSaSZysqoNkWxyD5yfj29Nz7GdqcA+jpxrBB\r\n0i4OXLho+xA3tkz9zBcVh3cForXixBnhdTJR3+ax4bQfyagUfpXa3vI+fY9V\r\nuHjYYsLfqO0UMpBPnAIALtILpuKnX/IRrt19DEhECC5qIYNRIncbPKoJPyNo\r\nXWnYDY1axWop3Zm3317EI4GUk6dGnKd6QeW7dFpKjmNpBhLlJjtNOJdYgItj\r\nMOqlXw8hVunR9+OV2dU74DsCyAmVL7VzVKxlXfWsR5mZCAXWYHbdrAKEXFr7\r\nfqA7PK83rEXtBTbQX2qEOTAjki/y9ic3amgH04afd0m6Z/9Jna7Qk/OVptNQ\r\njH6d58mrGcrXkUaL3+Em9GtNoEGZR/e4EMIHgueYTOGB1L8u0wVj8uf038Oa\r\nuyNw6LZiaVD3IJFf4EuHHzLu2o27SczH3g8=\r\n=dKPO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aecostas","email":"aecostas@gmail.com"},"directories":{},"maintainers":[{"name":"moizh","email":"moiz.ca5114@gmail.com"},{"name":"aecostas","email":"aecostas@gmail.com"},{"name":"sergiobenshi","email":"sergio@benshi.ai"},{"name":"sergiocarracedo","email":"hi@sergiocarracedo.es"},{"name":"dxe.tang","email":"dxe.tang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bs-video_0.1.0_1659362190287_0.8472508906667693"},"_hasShrinkwrap":false}},"maintainers":[{"name":"moizh","email":"moiz.ca5114@gmail.com"},{"name":"aecostas","email":"aecostas@gmail.com"},{"name":"sergiobenshi","email":"sergio@benshi.ai"},{"name":"sergiocarracedo","email":"hi@sergiocarracedo.es"},{"name":"dxe.tang","email":"dxe.tang@gmail.com"}],"description":"Stencil Component Starter","homepage":"https://docs.benshi.ai/","contributors":[{"name":"Andrés Estévez","email":"andres@benshi.ai"}],"author":{"name":"benshi.ai","email":"hi@benshi.ai","url":"https://benshi.ai"},"license":"MIT","readme":"\n# bs-video\n`bs-video` is a wrapper over the native `video` element that automatically tracks the interactions (play, pause, etc) and sends the corresponding logs through  `@benshi.ai/js-sdk`, which must be installed in the main application\n\n# Usage\n\nIn the main file of the project, import the module:\n\n    import '@benshi.ai/bs-video'\n\nThere is also need to include the polyfills to use the component within a framework:\n\n    import { applyPolyfills, defineCustomElements } from '@benshi.ai/bs-video/loader';\n\n\n    applyPolyfills().then(() => {\n        defineCustomElements(window);\n    });\n\nFinally, insert the `<bs-video>` tag in your HTML template:\n\n    <bs-video \n        ref={videoRef}\n        media-id='video_123'\n        src='<path to video>' \n        width='500' \n        controls\n        content-block={ContentBlock.ELearning}\n    />\n\nNote the reference to the element. The reason for that is the need of an initialization:\n\n    import {\n        Navigation,\n        ContentBlock,\n    } from '@benshi-ai/js-sdk'\n\n    videoRef.current.injectNavigation(Navigation)\n\n\n\n# API\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property       | Attribute       | Description                                                                              | Type      | Default     |\n| -------------- | --------------- | ---------------------------------------------------------------------------------------- | --------- | ----------- |\n| `autoplay`     | `autoplay`      | Inherited from native component                                                          | `boolean` | `undefined` |\n| `contentBlock` | `content-block` | Block where the video is inserted (i.e.: ContentBlock.ELearning, ContentBlock.ECommerce) | `string`  | `undefined` |\n| `controls`     | `controls`      | Inherited from native component                                                          | `boolean` | `undefined` |\n| `height`       | `height`        | Inherited from native component                                                          | `string`  | `undefined` |\n| `loop`         | `loop`          | Inherited from native component                                                          | `boolean` | `undefined` |\n| `mediaId`      | `media-id`      | Identifier for this video, as defined in the catalog                                     | `string`  | `undefined` |\n| `metadata`     | `metadata`      | Object with all the known properties of this media element                               | `any`     | `undefined` |\n| `poster`       | `poster`        | Inherited from native component                                                          | `string`  | `undefined` |\n| `src`          | `src`           | Inherited from native component                                                          | `string`  | `undefined` |\n| `width`        | `width`         | Inherited from native component                                                          | `string`  | `undefined` |\n\n\n## Methods\n\n### `injectNavigation(navigationModule: any) => Promise<void>`\n\nCall this method is mandatory to initialize the logger, \notherwiser the component will be unable to send logs\nautomatically\n\n#### Returns\n\nType: `Promise<void>`\n\n","readmeFilename":"readme.md"}