{"_id":"@axis-communications/axis-web-video-player","_rev":"2-5499cf06dc1388440c21338760a48342","name":"@axis-communications/axis-web-video-player","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.1":{"name":"@axis-communications/axis-web-video-player","version":"0.0.1","_id":"@axis-communications/axis-web-video-player@0.0.1","maintainers":[{"name":"adam-miller-at-axis","email":"adam.x.miller@axis.com"},{"name":"mattias-kindborg-at-work","email":"mattias.kindborg@axis.com"}],"dist":{"shasum":"e5b6553516a267d85fe9e46136adad49d1cfc86e","tarball":"https://registry.npmjs.org/@axis-communications/axis-web-video-player/-/axis-web-video-player-0.0.1.tgz","fileCount":2,"integrity":"sha512-FIy8t3q4Fpi6xcaz5YO2AWs81LvWpIs8WOB/WVmC+EPRthxhRWTfzPhRmvucJe1CnRd9sGxyNEblPG3zxyCyUQ==","signatures":[{"sig":"MEUCIQDMlRnXiBZwpylc9esgp13nU64UC6cW2RCsXs/CMTCMtQIgESZLN3WUTOU5IrGVlmxR+qcjFhtCPQ9grxGlHb7q3mY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":506},"gitHead":"daab3067657b7e3ef8886ccd7a38740219c26d1c","_npmUser":{"name":"mattias-kindborg-at-work","email":"mattias.kindborg@axis.com"},"_npmVersion":"11.19.0","description":"This version of the package serves as a placeholder, enabling trusted publishing on npm.","directories":{},"_nodeVersion":"24.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/axis-web-video-player_0.0.1_1788341485728_0.6489952657666984","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@axis-communications/axis-web-video-player","version":"1.3.0","description":"Axis Web Video Player","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"build":"tsdown src/index.ts --config tsdown.config.ts","fix":"biome check . --write --unsafe && biome format . --write","lint-ci":"npm run build && biome ci . && (cd example && tsc) && npm run headers:check","headers:check":"tsx scripts/copyright-headers.ts check src/ example/","headers:fix":"tsx scripts/copyright-headers.ts fix src/ example/","docs":"./scripts/generate-docs.sh","example":"npm ci && npm run build && cd example && npm run example","prepack":"./scripts/prepack.sh","postpack":"./scripts/postpack.sh","prepublishOnly":"./scripts/prepare-publish.sh"},"author":{"name":"Axis Communications AB"},"collaborators":["Axis Communications AB"],"license":"SEE LICENSE IN LICENSE.md","repository":{"url":"git+https://github.com/AxisCommunications/axis-web-video-player.git","type":"git"},"devDependencies":{"@biomejs/biome":"2.5.11","@microsoft/api-documenter":"7.30.13","@microsoft/api-extractor":"7.59.0","@types/lodash.merge":"4.6.9","@types/node":"^26.4.0","tsdown":"^0.22.14","tsx":"^4.23.13","type-fest":"5.8.0","typescript":"6.0.3"},"dependencies":{"@axiscommunications/webrtcvideo":"2.28.0"},"bundleDependencies":["@axiscommunications/webrtcvideo"],"gitHead":"16b8641adae3f37887f87c562cd01f90a1c126bc","_id":"@axis-communications/axis-web-video-player@1.3.0","bugs":{"url":"https://github.com/AxisCommunications/axis-web-video-player/issues"},"homepage":"https://github.com/AxisCommunications/axis-web-video-player#readme","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-ZgrwL3h4ypR2qn6MtP/Jdt+4E8+TaY+XyOeKkrwFyeYaCyp9yV3/TM/jBXyi957Xf0gRvuyAU91QXsoL0UrR1Q==","shasum":"b96257faa66b10f1b195a481ace8dd74cd269401","tarball":"https://registry.npmjs.org/@axis-communications/axis-web-video-player/-/axis-web-video-player-1.3.0.tgz","fileCount":169,"unpackedSize":3717922,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@axis-communications%2faxis-web-video-player@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID219tMF5uN4NevFub5JW0zYGu1jiPfy9Mb3r0aPuGzdAiEA5+CkyrVYUCpdTxFeEhUhJ5AJq0BWvsag4DBss9SdUbE="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e67b4ad9-6e40-4045-b4b9-1ba743a243b8"}},"directories":{},"maintainers":[{"name":"adam-miller-at-axis","email":"adam.x.miller@axis.com"},{"name":"mattias-kindborg-at-work","email":"mattias.kindborg@axis.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/axis-web-video-player_1.3.0_1788522706987_0.026101385043146852"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T09:31:25.395Z","modified":"2026-09-04T11:51:47.503Z","0.0.1":"2026-09-02T09:31:25.861Z","1.3.0":"2026-09-04T11:51:47.161Z"},"description":"Axis Web Video Player","maintainers":[{"name":"adam-miller-at-axis","email":"adam.x.miller@axis.com"},{"name":"mattias-kindborg-at-work","email":"mattias.kindborg@axis.com"}],"readme":"*©2026 Axis Communications AB. AXIS COMMUNICATIONS, AXIS, ARTPEC and VAPIX are registered trademarks of Axis AB in various jurisdictions. All other trademarks are the property of their respective owners.*\n\n# Axis Web Video Player [![npm version](https://img.shields.io/npm/v/@axis-communications/axis-web-video-player.svg?style=flat)](https://www.npmjs.com/package/@axis-communications/axis-web-video-player)\n\n## Overview\n\nThe Axis Web Video Player makes it easy to use Axis camera video inside a browser.\n\n## Getting started\n\n### Installation\n\nInstall the package from npmjs.com:\n\n```sh\nnpm install @axis-communications/axis-web-video-player\n```\n\n### API reference\n\nSee the [API reference](./docs/api/axis-web-video-player.md) for detailed information about the classes and interfaces in the Axis Web Video Player.\n\n### Code example\n\nSee the [code example](./example/README.md) for a basic example on how to use the Axis Web Video Player.\n\n### WebAssembly binary, bundling and Content Security Policy (CSP)\n\nThe published npm package built from this repository includes a WebAssembly binary that contains the vast majority of the application logic. It includes performance-sensitive media features for live and playback functionality as well as Axis-specific signaling protocols (used in WebRTC).\nThat packaged WebAssembly binary is located in the bundled file `webrtcvideo_bg.wasm`, and it is loaded at runtime by the dependency initialization code.\n\n#### Bundler behavior and path resolution\n\nInternally the published package resolves the wasm URL with `new URL(\"webrtcvideo_bg.wasm\", import.meta.url)` and then fetches it.\nThis means your build must:\n\n- include the `.wasm` asset in the final output,\n- preserve a working URL from the emitted JS to the emitted wasm file,\n- serve the wasm file with `Content-Type: application/wasm`.\n\nUsually a modern bundler will do all this for you, but some bundlers may fail to detect or emit wasm assets correctly when dependencies are transformed, externalized, or copied without their adjacent binary files. If you see runtime fetch/404 errors for `webrtcvideo_bg.wasm`, verify the emitted asset path and bundler wasm handling in the npm package build.\n\nThe example app in this repository enables wasm handling in Vite via `vite-plugin-wasm` so you can verify the published package behavior in a browser build.\n\n#### Content Security Policy (CSP) requirements\n\nBecause the runtime initializes WebAssembly and performs dynamic JS glue operations, your CSP must allow these operations in the page where the player runs.\n\nUse this as a baseline and then tighten it for your deployment:\n\n```http\nContent-Security-Policy:\n\tdefault-src 'self';\n\tscript-src 'self' 'wasm-unsafe-eval';\n\tconnect-src 'self' https: wss:;\n```\n\nNotes:\n\n- `connect-src` must include your actual signaling and API endpoints.\n- If your browser baseline does not support `wasm-unsafe-eval`, `unsafe-eval` may still be required.\n\n## License\n\nInformation about licenses applicable for Axis Web Video Player components is stated in [LICENSE.md](./LICENSE.md).\n","readmeFilename":"README.md","homepage":"https://github.com/AxisCommunications/axis-web-video-player#readme","repository":{"url":"git+https://github.com/AxisCommunications/axis-web-video-player.git","type":"git"},"author":{"name":"Axis Communications AB"},"bugs":{"url":"https://github.com/AxisCommunications/axis-web-video-player/issues"},"license":"SEE LICENSE IN LICENSE.md"}