{"id":28500458,"url":"https://github.com/kaltura/playkit-js-ima","last_synced_at":"2025-07-04T10:30:33.602Z","repository":{"id":24021965,"uuid":"85229965","full_name":"kaltura/playkit-js-ima","owner":"kaltura","description":"IMA Plugin for the Kaltura Player JS","archived":false,"fork":false,"pushed_at":"2025-04-02T11:36:39.000Z","size":5006,"stargazers_count":4,"open_issues_count":24,"forks_count":7,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-06-02T05:53:22.742Z","etag":null,"topics":["es6","flow-typed","ima-sdk","kaltura","playkit","playkit-js","playkit-js-player"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaltura.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"zenodo":null}},"created_at":"2017-03-16T18:39:22.000Z","updated_at":"2025-04-02T11:36:43.000Z","dependencies_parsed_at":"2024-03-31T07:33:28.462Z","dependency_job_id":"bd89d84a-2c6e-4c81-8398-b1d7c99d0cab","html_url":"https://github.com/kaltura/playkit-js-ima","commit_stats":{"total_commits":478,"total_committers":24,"mean_commits":"19.916666666666668","dds":0.5690376569037656,"last_synced_commit":"8e8151a48e6829163dfd1c14073281f3382cf147"},"previous_names":[],"tags_count":107,"template":false,"template_full_name":null,"purl":"pkg:github/kaltura/playkit-js-ima","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-ima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-ima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-ima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-ima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaltura","download_url":"https://codeload.github.com/kaltura/playkit-js-ima/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-ima/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260221176,"owners_count":22976856,"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":["es6","flow-typed","ima-sdk","kaltura","playkit","playkit-js","playkit-js-player"],"created_at":"2025-06-08T15:07:08.086Z","updated_at":"2025-07-04T10:30:33.590Z","avatar_url":"https://github.com/kaltura.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlayKit JS IMA - IMA Plugin for the [Kaltura Player JS]\n\n[![Build Status](https://github.com/kaltura/playkit-js-ima/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-ima/actions/workflows/run_canary_full_flow.yaml)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-ima/latest.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-ima)\n[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-ima/canary.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-ima/v/canary)\n\nPlayKit JS IMA plugin integrates [IMA SDK for HTML5] with the [Kaltura Player JS].\n\nPlayKit JS IMA is written in [ECMAScript6], statically analysed using [Flow] and transpiled in ECMAScript5 using [Babel].\n\n[ima sdk for html5]: https://developers.google.com/interactive-media-ads/docs/sdks/html5/\n[flow]: https://flow.org/\n[ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials\n[babel]: https://babeljs.io\n[kaltura player js]: https://github.com/kaltura/kaltura-player-js\n\n## Getting Started\n\n### Prerequisites\n\nThe plugin requires [Kaltura Player JS] to be loaded first.\n\nThe plugin uses the [IMA SDK for HTML5] Javascript SDK, if the SDK is already loaded on the page the plugin will use it, and if it's not then it will load it.\n\n### Installing\n\nFirst, clone and run [yarn] to install dependencies:\n\n[yarn]: https://yarnpkg.com/lang/en/\n\n```\ngit clone https://github.com/kaltura/playkit-js-ima.git\ncd playkit-js-ima\nyarn install\n```\n\n### Building\n\nThen, build the player\n\n```javascript\nyarn run build\n```\n\n### Embed the library in your test page\n\nFinally, add the bundle as a script tag in your page, and initialize the player\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/PATH/TO/FILE/kaltura-{ovp/ott}-player.js\"\u003e\u003c/script\u003e\n\u003c!--PlayKit player--\u003e\n\u003cscript type=\"text/javascript\" src=\"//imasdk.googleapis.com/js/sdkloader/ima3.js\"\u003e\u003c/script\u003e\n\u003c!--IMA SDK for HTML5--\u003e\n\u003cscript type=\"text/javascript\" src=\"/PATH/TO/FILE/playkit-ima.js\"\u003e\u003c/script\u003e\n\u003c!--PlayKit IMA plugin--\u003e\n\u003cdiv id=\"player-placeholder\" style=\"height:360px; width:640px\"\u003e\n  \u003cscript type=\"text/javascript\"\u003e\n    var config = {\n      provider: {\n        partnerId: {YOUR_PARTNER_ID}\n        ...\n      },\n      ...\n      plugins: {\n        ima: {\n          adTagUrl: 'YOUR_AD_TAG_URL'\n        }\n      }\n      ...\n    };\n    var player = KalturaPlayer.setup(config);\n    player.play();\n  \u003c/script\u003e\n\u003c/div\u003e\n```\n\n## Documentation\n\n- **[Configuration \u0026 API](docs/api.md)**\n- **[Guides](docs/guides.md)**\n\n## Running the tests\n\nTests can be run locally via [Karma], which will run on Chrome, Firefox and Safari\n\n[karma]: https://karma-runner.github.io/1.0/index.html\n\n```\nyarn run test\n```\n\nYou can test individual browsers:\n\n```\nyarn run test:chrome\nyarn run test:firefox\nyarn run test:safari\n```\n\n### And coding style tests\n\nWe use ESLint [recommended set](http://eslint.org/docs/rules/) with some additions for enforcing [Flow] types and other rules.\n\nSee [ESLint config](.eslintrc.json) for full configuration.\n\nWe also use [.editorconfig](.editorconfig) to maintain consistent coding styles and settings, please make sure you comply with the styling.\n\n## Compatibility\n\nTBD\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/kaltura/playkit-js-ima/tags).\n\n## License\n\nThis project is licensed under the AGPL-3.0 License - see the [LICENSE.md](LICENSE.md) file for details\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaltura%2Fplaykit-js-ima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaltura%2Fplaykit-js-ima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaltura%2Fplaykit-js-ima/lists"}