{"_id":"@bayesgg/bayes-web-player-js","_rev":"8-2c06b267ae3a257ce144f334e74132b1","name":"@bayesgg/bayes-web-player-js","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.2":{"name":"@bayesgg/bayes-web-player-js","version":"0.1.2","author":{"name":"Bayes Esports Solutions GmbH"},"license":"For licensing information see LICENSE.txt","_id":"@bayesgg/bayes-web-player-js@0.1.2","maintainers":[{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"eren-bayes","email":"eren.gueven@bayes.gg"}],"dist":{"shasum":"01f2941841640d56682d410eb32204edf6456832","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.1.2.tgz","fileCount":14,"integrity":"sha512-r1mtED9GI2QXWzgPrpDBQ4p+HyYGZ2sr6bO511BYo77KwBwKoB1/kHCfnFMpEXFUrYJtJLJudleCTjWWxijQRw==","signatures":[{"sig":"MEQCIBx0eCuQKc5kyS8UdhaPgNba6r9Gnq7iqUqsAy3GTkdzAiALy6AWPPlAzjUBcdS4VzIYZYZMDsJli+D+IoheBVnfeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":696947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUnTFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2XBAAn2Q9jbNl8b38R9HPBraNn5fAREQxUGbZMew7Se2enVGGl1j/\r\n695nehu1jhdbIP/Pd2Creov97jLeIFNuhpEHBVp9EIXsnmCmrRqX1XKIYSSY\r\ns0RdnNCqagEXBaBlL8UpsIxxJBUhX9BxeG/55486FZsKv5w2j1V5xJAWVOdh\r\nGD9K4mqOGKlzqbTBJyHBj/ezV1mhk/P3Lv9jcTozfZ7oRbpDITUXq9pppebC\r\n1QjQEZ9j0gPuAubdS+HIYtzw9fHQpfnrtfaLF2brQdXtpwYSKV4fCLELf/bi\r\nbPAifFekicN02JLz/srx9CmPvnnygE+dHnja9A/vBQjjLk6rmtqndMTwhko6\r\nipjcXtJQ3Bthebh3tXrI0aePNBdPR5H0lwT9F62VObZqWSG7YghdOL1xg0kp\r\n5JPrVvaBybyII+Y6mgOEY8qRPLqvzkmwIUl5KkBW0DNZPFwms4PAE0e5/nzn\r\nCdpBDfh+m0xLHb2A5nwBqNaXZhd5BcKnkOytb7z3UDfahZGCATdUFdyy1uxA\r\ns8p79qwbHIuqOibEl0FiwrjdGOyyX+OKbjjnB3VkJmdf+Tplw4j/NKEkQLWI\r\ncgLTe46oZ81XNxWYft6q4V/Ld6b2OeLdr5Aa7iRI5HA2gd2VSYKQVC3AiXC4\r\nojaYsEuNDPE8vOZkx7B3XXCbgyxz+AqMj3Y=\r\n=P8DL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bwp.js","types":"dist/@types","gitHead":"dab6ca287cf5e9d86bce9d9d0834772812e32979","scripts":{"test":"jest","build":"webpack --mode=production --node-env=production","start":"webpack serve --mode=development --node-env=development","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","build:ci":"npm run build","prebuild":"shx rm -rf dist","build:dev":"webpack --mode=development --node-env=development","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage"},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"_npmVersion":"8.13.2","description":"JavaScript library for Bayes Web Player component","directories":{},"_nodeVersion":"18.6.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bayes-web-player-js_0.1.2_1683125445430_0.22713316754918522","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@bayesgg/bayes-web-player-js","version":"0.1.3","author":{"name":"Bayes Esports Solutions GmbH"},"license":"See LICENSE.txt for license","_id":"@bayesgg/bayes-web-player-js@0.1.3","maintainers":[{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"eren-bayes","email":"eren.gueven@bayes.gg"}],"dist":{"shasum":"4f398730f3c42f9eb7e764959ff7fc7fb48c942b","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.1.3.tgz","fileCount":14,"integrity":"sha512-eIHy8ZIjrUhq9ev8vOcat9qo73TLhFhC4Yl9V5K12m7ZLlVxEFGDrW1aRWQtEx36DWocQGGU4IW9+ZyYb0BgmQ==","signatures":[{"sig":"MEUCIQCcGDQ3aK3g+2XDGV2ezq/l2tn341Gluvo46TJ0sppavQIgR0YOxEJA+mvl3Ef9IVI0KqV2iY+DKAozxv6mFheXNOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":697164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUowdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppPxAAi3fYz0ACC7TIClqeWZeOz70pHRzsNv9nieH7eYHwarhuZTVh\r\nPgJ1/1iuc9yIChTM4LgH2W+BumQPsoKf6hJdLGXURDjqyQlxbuoUo3dzYWH7\r\nUocqOXpkEJsjqhgnILR93gWnijxCFoF6FOFUSAdu06YZqqlWS2e+G/hUUY/A\r\njNhN2dvWH75x9Wzig6uE2a1TdkvVhdMi/n8wmqjOvdCvha4r1IMz4fAbqA2v\r\nqo8ylpMXGSc//7+bKoC1iV1lrC9Xe4PjcNpb3jmsP3WP7NQJrshrkbUeMlIH\r\nmg6znokcMl902MBGYupB0DdpDllyBp1GFoGoTL9LifMD7yjBMgDjONOXgdFD\r\nmSKowSHTvvyU3dxSEEJWwBUdA+f7BWiko/qIZ+K5BJrZKJZRmlhuyxTjZgWL\r\nXicyVQT2RJNR7DBYIz9WociqLS8sLBCmfj7z+/MH8SqafH2an5LSvvCQWGEm\r\nHCBzzJdfublEvysouI+rHISRaA/9V1gLfQUp8RS/YWCrLlHg7GTeUZsOvqdw\r\nIQA5/O0nH/lrJ4Gd6h7pFc6yIyoT70Hc+i3AWP/e3Wveq69aNswxmMEllAB9\r\nfjfa51UYvls0/yxSAorGakA9+zUih6fK2KMn0keKy0EeXJ8kCsSR5ZfBjO00\r\nUXbTibZ1J2xb0L0XayaC7FXYryXe98vuZFs=\r\n=Gmh4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/bwp.js","types":"dist/@types","gitHead":"908fcaf0eea9a0cea67082aa54fe1b7a2a36da29","scripts":{"test":"jest","build":"webpack --mode=production --node-env=production","start":"webpack serve --mode=development --node-env=development","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","build:ci":"npm run build","prebuild":"shx rm -rf dist","build:dev":"webpack --mode=development --node-env=development","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage"},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"_npmVersion":"8.13.2","description":"JavaScript library for Bayes Web Player component","directories":{},"_nodeVersion":"18.6.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bayes-web-player-js_0.1.3_1683131420783_0.7935768843125031","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@bayesgg/bayes-web-player-js","version":"0.1.4","author":{"name":"Bayes Esports Solutions GmbH"},"license":"See LICENSE.txt for license","_id":"@bayesgg/bayes-web-player-js@0.1.4","maintainers":[{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"eren-bayes","email":"eren.gueven@bayes.gg"}],"dist":{"shasum":"f3b014fbb68c1c7a5ba3999b4bca2110322f84ec","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.1.4.tgz","fileCount":14,"integrity":"sha512-esNhjP1W28+D9bjOTstJmc3AEdZBh7vskPsWZsu1tG74N6oDQDhm181EIMzHR93avHemtkd+W21sLIVd0QLsvA==","signatures":[{"sig":"MEUCIBf+GRdvDiOXpgw1DRFJoXkGPa/41CVL/TX0usldWOb0AiEAnZcSPygPi0/ivO4OALqtJWQZdcUh3vBF3kN8q2/5d38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":698845},"main":"dist/bwp.js","types":"dist/@types","gitHead":"94624c5669d6e98bca18695077a37483e0f120b9","scripts":{"test":"jest","build":"webpack --mode=production --node-env=production","start":"webpack serve --mode=development --node-env=development","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","build:ci":"npm run build","prebuild":"shx rm -rf dist","build:dev":"webpack --mode=development --node-env=development","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage"},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"_npmVersion":"8.13.2","description":"JavaScript library for Bayes Web Player component","directories":{},"_nodeVersion":"18.6.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bayes-web-player-js_0.1.4_1694683832910_0.26105858010707284","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@bayesgg/bayes-web-player-js","version":"0.1.6","author":{"name":"Bayes Esports Solutions GmbH"},"license":"See LICENSE.txt for license","_id":"@bayesgg/bayes-web-player-js@0.1.6","maintainers":[{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"eren-bayes","email":"eren.gueven@bayes.gg"}],"dist":{"shasum":"c019e88ba215076052eef92974f9acf6412bd919","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.1.6.tgz","fileCount":14,"integrity":"sha512-ueytvBIhlyKhvYTozdfZ+EBGOP0ipmBtrV5R9ielRa2DJP6I+rmBV4bYLNp9MnT3pHAj7723d5iIjxZvy2gw+w==","signatures":[{"sig":"MEYCIQCvGlPh6F/Fck5viPF0OmMVayGHtrdlbg9/NuYk1BFLOQIhAIbVfwHRgxSv6gjwf279Wn8+XabAyUF5Mc343L/g5zBd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":697529},"main":"dist/bwp.js","types":"dist/@types","gitHead":"9139b3dc6de27c9936aded8282fc6d75e9ecd759","scripts":{"test":"jest","build":"webpack --mode=production --node-env=production","start":"webpack serve --mode=development --node-env=development","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","build:ci":"npm run build","prebuild":"shx rm -rf dist","build:dev":"webpack --mode=development --node-env=development","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage"},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"_npmVersion":"8.13.2","description":"JavaScript library for Bayes Web Player component","directories":{},"_nodeVersion":"18.6.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bayes-web-player-js_0.1.6_1698659301886_0.2792618002784857","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"@bayesgg/bayes-web-player-js","version":"0.1.7","author":{"name":"Bayes Esports Solutions GmbH"},"license":"See LICENSE.txt for license","_id":"@bayesgg/bayes-web-player-js@0.1.7","maintainers":[{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"eren-bayes","email":"eren.gueven@bayes.gg"}],"dist":{"shasum":"bc82c0571e912ac388197e90a5a7ee5c980bbeb7","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.1.7.tgz","fileCount":14,"integrity":"sha512-MvXA7ezh5aaXSoNiCzm5i88R+xyKC+zHdRYlUAmrYWip4DynZmbvV00kqGI6WmupnyDoEYat+HYklIYIb/xVoA==","signatures":[{"sig":"MEUCIQCwWl7hzklq9y/gXtA2JHJovouySTeew7lIBTWY8EAR+gIgfgRo5FhKHDJGUmOxE3QJWQt6NdoWqc7iBXNHq5MdbGE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":699098},"main":"dist/bwp.js","types":"dist/@types","gitHead":"38804e991dd34cf80390f922248b0c7af45faa69","scripts":{"test":"jest","build":"webpack --mode=production --node-env=production","start":"webpack serve --mode=development --node-env=development","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","build:ci":"npm run build","prebuild":"shx rm -rf dist","build:dev":"webpack --mode=development --node-env=development","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage"},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"_npmVersion":"8.13.2","description":"JavaScript library for Bayes Web Player component","directories":{},"_nodeVersion":"18.6.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bayes-web-player-js_0.1.7_1714647296523_0.6553982345929965","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@bayesgg/bayes-web-player-js","version":"0.2.0","description":"JavaScript library for Bayes Web Player component","main":"dist/bwp.js","types":"dist/@types","scripts":{"start":"webpack serve --mode=development --node-env=development","test":"jest","test:ci":"CI=true npm run test -- --ci --reporters=default --reporters=jest-junit","test:ci:coverage":"CI=true npm run test:coverage","test:coverage":"npm run test -- --coverage . --watchAll=false --reporters=default --reporters=jest-junit","prebuild":"shx rm -rf dist","build":"webpack --mode=production --node-env=production","build:dev":"webpack --mode=development --node-env=development","build:ci":"npm run build"},"license":"See LICENSE.txt for license","author":{"name":"Bayes Esports Solutions GmbH"},"_id":"@bayesgg/bayes-web-player-js@0.2.0","gitHead":"7af7b48449ebb7c733c4096918ef6ee0da43c293","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-uNeBptNesLzildf961S10VXVcEiqZ/9ur39zvoqkfUNj6u4rC7TCIOBr114ZgarnEM09jrC62QUSfb/UIXJ68Q==","shasum":"c8ce250c2cf55d975b620a8a9c1e3699ccdfc78f","tarball":"https://registry.npmjs.org/@bayesgg/bayes-web-player-js/-/bayes-web-player-js-0.2.0.tgz","fileCount":14,"unpackedSize":699144,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwSb9uEtb05ZKHD0Pu1i8TbUGAa5pucfVeb4zZMK9o2AIgSczsOzzAtSS8MQ+thqvG81msaQYtR8hv+m2zY8vbEb0="}]},"_npmUser":{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"},"directories":{},"maintainers":[{"name":"eren-bayes","email":"eren.gueven@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bayes-web-player-js_0.2.0_1748004406210_0.6601633979957513"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-03T14:50:45.378Z","modified":"2025-05-23T12:46:46.673Z","0.1.2":"2023-05-03T14:50:45.624Z","0.1.3":"2023-05-03T16:30:21.036Z","0.1.4":"2023-09-14T09:30:33.149Z","0.1.5":"2023-10-30T09:05:46.553Z","0.1.6":"2023-10-30T09:48:22.206Z","0.1.7":"2024-05-02T10:54:56.736Z","0.2.0":"2025-05-23T12:46:46.467Z"},"author":{"name":"Bayes Esports Solutions GmbH"},"license":"See LICENSE.txt for license","description":"JavaScript library for Bayes Web Player component","maintainers":[{"name":"eren-bayes","email":"eren.gueven@bayes.gg"},{"name":"shahid.hassan","email":"shahid.hassan@bayes.gg"},{"name":"account.bayesgg.builds","email":"account.bayesgg.builds@bayes.gg"}],"readme":"# Bayes Web Player\n\n## What is Bayes Web Player?\n\nBayes Web Player is a lightweight, feature-rich frontend library that is developed in-house specifically to embed video streams from Bayes TV on your site. Offering an effortless integration, the player is written using TypeScript without any frontend framework restrictions and will be made available as an NPM package as well as via CDN. For more information refer to official documentation [here.](https://docs.bayesesports.com/docs-bayestv/btvf/web_player)\n\n## Features\n\n#### Playback Features\n\n- Autoplay ON/OFF as required.\n- Detachable player.\n- Comprehensive API for stream playback control, volume control, UI control etc.\n\n#### User Interface\n\n- Fullscreen.\n- Volume controls.\n- Custom error message.\n- Custom styling.\n- Thumbnail.\n- Watermarking.\n\n## Integration\n\n### Installation\n\nYou can install the library and the default stylesheets for the Bayes Web Player via CDN and as an NPM package.\n\n```\nnpm i --save @bayesgg/bayes-web-player-js\n```\n\n### Usage\n\nThe Bayes Web Player offers an easy to integrate interface which can be either imported (NPM) or referred to via the global instance. You can find minimal examples given below.\n\n### JS integration via CDN\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <!-- CDN import for the minified JS files of the Bayes Web Player -->\n    <script src=\"bwp.js\" crossorigin></script>\n    <!-- CDN import for the minified stylesheet of the Bayes Web Player -->\n    <link rel=\"stylesheet\" href=\"css/bwp.css\" />\n    <script>\n      const player = new bwp.Player(\n        /**\n         *  Playlist URL fetched via Bayes TV\n         * */\n        \"insert-playlist-url-here\",\n        /**\n         *  Container ID where the player will be embedded\n         * */\n        \"root\",\n        /**\n         * Options for the player to be initialized. You can find a comprehensive\n         * list of available options provided later in the documentation\n         **/\n        {\n          autoplay: true,\n        }\n      );\n      // Initialise and play the video.\n      player.init();\n      player.play();\n    </script>\n    <title>Bayes Web Player Demo! :)</title>\n  </head>\n  <body>\n    <div id=\"root\"></div>\n  </body>\n</html>\n```\n\n### React Integration via NPM\n\n```jsx\nimport { useEffect, useRef } from \"react\";\nimport BayesWebPlayer from \"@bayesgg/bayes-web-player-js\";\n\n/**\n * Import the default stylesheet from Bayes Web Player\n */\nimport \"@bayesgg/bayes-web-player-js/dist/css/bwp.css\";\n\nfunction Stream() {\n  const ref = useRef();\n\n  useEffect(() => {\n    /**\n     * Instantiate player with the container ref\n     */\n    const player = new BayesWebPlayer(\n      /**\n       * Playlist URL fetched via Bayes TV\n       */\n      \"insert-playlist-url-here\",\n      ref.current,\n      {\n        autoplay: true,\n        muted: true,\n      }\n    );\n    player.init();\n    player.play();\n\n    /**\n     * Make sure the player is destroyed on component unmount\n     */\n    return () => {\n      player.destroy();\n    };\n  }, []);\n\n  return <div ref={ref} />;\n}\n\nexport default Stream;\n```\n","readmeFilename":"README.md"}