{"id":28490968,"url":"https://github.com/videojs/videojs-playbackrate-adjuster","last_synced_at":"2025-07-08T01:31:42.922Z","repository":{"id":57392302,"uuid":"84878349","full_name":"videojs/videojs-playbackrate-adjuster","owner":"videojs","description":"A Video.js middleware that adjusts controls based on playback rate","archived":false,"fork":false,"pushed_at":"2020-12-21T21:43:23.000Z","size":323,"stargazers_count":28,"open_issues_count":0,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-06-04T00:37:05.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://videojs.github.io/videojs-playbackrate-adjuster/","language":"JavaScript","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/videojs.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}},"created_at":"2017-03-13T21:55:08.000Z","updated_at":"2024-01-23T15:02:48.000Z","dependencies_parsed_at":"2022-09-11T21:53:51.543Z","dependency_job_id":null,"html_url":"https://github.com/videojs/videojs-playbackrate-adjuster","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/videojs/videojs-playbackrate-adjuster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playbackrate-adjuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playbackrate-adjuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playbackrate-adjuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playbackrate-adjuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videojs","download_url":"https://codeload.github.com/videojs/videojs-playbackrate-adjuster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playbackrate-adjuster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260600113,"owners_count":23034643,"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":[],"created_at":"2025-06-08T07:30:52.262Z","updated_at":"2025-07-08T01:31:42.915Z","avatar_url":"https://github.com/videojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videojs-playbackrate-adjuster\n\nA Video.js 7 middleware that adjusts controls based on playback rate\n\nWhen the playback rate is adjusted in from the menu, the middleware tells the player that the duration and times have changes and then uses the current playback rate to adjust the times in the control bar.\nFor example, when the player is playing back in 2x, a 20 minute video will look like a 10 minute video.\n\n## Installation\n\n```sh\nnpm install --save videojs-playbackrate-adjuster\n```\n\n## Usage\n\nTo include videojs-playbackrate-adjuster on your website or web application, use any of the following methods.\nSince it's a middleware and attaches itself to Video.js automatically,\nit only needs to be included or required.\n\n### `\u003cscript\u003e` Tag\n\nThis is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include [video.js][videojs], so that the `videojs` global is available.\n\n```html\n\u003cscript src=\"//path/to/video.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//path/to/videojs-playbackrate-adjuster.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var player = videojs('my-video');\n\u003c/script\u003e\n```\n\n### Browserify\n\nWhen using with Browserify, install videojs-playbackrate-adjuster via npm and `require` the plugin as you would any other module.\n\n```js\nvar videojs = require('video.js');\n\n// The actual middleware function is exported by this module, but it is also\n// attached to Video.js; so, there is no need to assign it to a variable.\nrequire('videojs-playbackrate-adjuster');\n\nvar player = videojs('my-video');\n```\n\n### RequireJS/AMD\n\nWhen using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the plugin as you normally would:\n\n```js\nrequire(['video.js', 'videojs-playbackrate-adjuster'], function(videojs) {\n  var player = videojs('my-video');\n});\n```\n\n## License\n\nMIT. Copyright (c) Gary Katsevman \u003cme@gkatsev.com\u003e\n\n\n[videojs]: http://videojs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-playbackrate-adjuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideojs%2Fvideojs-playbackrate-adjuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-playbackrate-adjuster/lists"}