{"id":18498054,"url":"https://github.com/apivideo/api.video-videojs-analytics","last_synced_at":"2025-10-11T03:56:23.535Z","repository":{"id":43728397,"uuid":"350806502","full_name":"apivideo/api.video-videojs-analytics","owner":"apivideo","description":"api.video player analytics plugin for videojs","archived":false,"fork":false,"pushed_at":"2024-07-30T13:42:52.000Z","size":393,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T19:44:42.208Z","etag":null,"topics":["player","video","video-analytics","video-player","videojs","videojs-plugin"],"latest_commit_sha":null,"homepage":"https://api.video","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apivideo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-23T17:52:17.000Z","updated_at":"2024-07-30T13:42:17.000Z","dependencies_parsed_at":"2024-06-20T21:50:17.785Z","dependency_job_id":"6eee1848-6482-412e-9414-e3d5d8847c85","html_url":"https://github.com/apivideo/api.video-videojs-analytics","commit_stats":{"total_commits":30,"total_committers":6,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"132c263c1c6ce526d506ff8394d0eef664241f10"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apivideo%2Fapi.video-videojs-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apivideo%2Fapi.video-videojs-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apivideo%2Fapi.video-videojs-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apivideo%2Fapi.video-videojs-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apivideo","download_url":"https://codeload.github.com/apivideo/api.video-videojs-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949744,"owners_count":21023377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["player","video","video-analytics","video-player","videojs","videojs-plugin"],"created_at":"2024-11-06T13:37:25.413Z","updated_at":"2025-10-11T03:56:18.511Z","avatar_url":"https://github.com/apivideo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\u003cdocumentation_excluded\u003e--\u003e\n[![badge](https://img.shields.io/twitter/follow/api_video?style=social)](https://twitter.com/intent/follow?screen_name=api_video) \u0026nbsp; [![badge](https://img.shields.io/github/stars/apivideo/api.video-videojs-analytics?style=social)](https://github.com/apivideo/api.video-videojs-analytics) \u0026nbsp; [![badge](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.api.video)](https://community.api.video)\n![](https://github.com/apivideo/.github/blob/main/assets/apivideo_banner.png)\n![npm](https://img.shields.io/npm/v/@api.video/videojs-player-analytics) ![ts](https://badgen.net/badge/-/TypeScript/blue?icon=typescript\u0026label)\n\u003ch1 align=\"center\"\u003eapi.video videojs analytics plugin\u003c/h1\u003e\n\n[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand \u0026 low latency live streaming features in your app.\n\n\n## Table of contents\n\n- [Table of contents](#table-of-contents)\n- [Project description](#project-description)\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n    - [Method #1: requirejs](#method-1-requirejs)\n    - [Method #2: typescript](#method-2-typescript)\n    - [Method #3: simple include in a javascript project](#method-3-simple-include-in-a-javascript-project)\n\n\u003c!--\u003c/documentation_excluded\u003e--\u003e\n\u003c!--\u003cdocumentation_only\u003e\n---\ntitle: api.video video.js analytics plugin\nmeta: \n  description: The official api.video video.js analytics plugin for api.video. [api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand \u0026 low latency live streaming features in your app.\n---\n\n# api.video video.js analytics plugin\n\n[api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand \u0026 low latency live streaming features in your app.\n\n\u003c/documentation_only\u003e--\u003e\n## Project description\n\nvideo.js plugin to call the api.video analytics collector. \n\n## Getting started\n\n### Installation \n\n#### Method #1: requirejs\n\nIf you use requirejs you can add the plugin as a dependency to your project with \n\n```sh\n$ npm install --save @api.video/videojs-player-analytics\n```\n\nYou can then use the plugin in your script: \n\n```javascript\nvar videojs = require('video.js');\nvar { VideoJsApiVideoAnalytics } = require('@api.video/videojs-player-analytics');\n\nvideojs.registerPlugin('apiVideoAnalytics', VideoJsApiVideoAnalytics);\nconst player = videojs('my-video');\nplayer.apiVideoAnalytics();\n```\n\n#### Method #2: typescript\n\nIf you use Typescript you can add the plugin as a dependency to your project with \n\n```sh\n$ npm install --save @api.video/videojs-player-analytics\n```\n\nYou can then use the plugin in your script: \n\n```typescript\nimport videojs from 'video.js';\nimport { VideoJsApiVideoAnalytics } from '@api.video/videojs-player-analytics';\n\nvideojs.registerPlugin('apiVideoAnalytics', VideoJsApiVideoAnalytics);\nconst player = videojs('my-video');\nplayer.apiVideoAnalytics();\n\n\n```\n\n#### Method #3: simple include in a javascript project\n\nInclude the plugin in your HTML file like so:\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003clink href=\"https://vjs.zencdn.net/7.10.2/video-js.css\" rel=\"stylesheet\" /\u003e\n        \u003cscript src=\"https://vjs.zencdn.net/7.10.2/video.min.js\"\u003e\u003c/script\u003e\n        \u003cscript src=\"https://unpkg.com/@api.video/videojs-player-analytics\"\u003e\u003c/script\u003e\n    \u003c/head\u003e\n    \n    \u003cbody\u003e\n    \n        \u003cvideo id='video-example' class=\"video-js vjs-default-skin\" width=\"400\" height=\"300\" controls\u003e\n            \u003csource type=\"application/x-mpegURL\" src=\"https://cdn.api.video/vod/vi5oDagRVJBSKHxSiPux5rYD/hls/manifest.m3u8\"\u003e\n        \u003c/video\u003e\n    \n        \u003cscript\u003e\n            videojs.registerPlugin('apiVideoAnalytics', VideoJsApiVideoAnalytics);\n            \n            var player = videojs('video-example');\n            player.apiVideoAnalytics();\n        \u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapivideo%2Fapi.video-videojs-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapivideo%2Fapi.video-videojs-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapivideo%2Fapi.video-videojs-analytics/lists"}