{"id":21151107,"url":"https://github.com/johnsonjo4531/videojs-gifplayer","last_synced_at":"2025-07-27T00:13:28.255Z","repository":{"id":57392263,"uuid":"81627775","full_name":"johnsonjo4531/videojs-gifplayer","owner":"johnsonjo4531","description":"Plays gifs that are in video format automatically with looping only when in viewport in similar fashion to twitter's gif player.","archived":false,"fork":false,"pushed_at":"2017-03-30T23:43:16.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T14:09:44.558Z","etag":null,"topics":["gif","javascript","video-player","videojs","videojs-plugin"],"latest_commit_sha":null,"homepage":null,"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/johnsonjo4531.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-02-11T03:25:39.000Z","updated_at":"2017-02-11T03:30:17.000Z","dependencies_parsed_at":"2022-08-30T20:01:05.663Z","dependency_job_id":null,"html_url":"https://github.com/johnsonjo4531/videojs-gifplayer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/johnsonjo4531/videojs-gifplayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonjo4531%2Fvideojs-gifplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonjo4531%2Fvideojs-gifplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonjo4531%2Fvideojs-gifplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonjo4531%2Fvideojs-gifplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnsonjo4531","download_url":"https://codeload.github.com/johnsonjo4531/videojs-gifplayer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonjo4531%2Fvideojs-gifplayer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267273902,"owners_count":24062659,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gif","javascript","video-player","videojs","videojs-plugin"],"created_at":"2024-11-20T10:13:44.870Z","updated_at":"2025-07-27T00:13:28.219Z","avatar_url":"https://github.com/johnsonjo4531.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videojs-gifplayer\n\nPlays gifs that are in video format automatically with looping only when in viewport in similar fashion to twitter\u0026#39;s gif player.\n\n## Table of Contents\n\n\u003c!-- START doctoc --\u003e\n\u003c!-- END doctoc --\u003e\n## Installation\n\n```sh\nnpm install --save videojs-gifplayer\n```\n\nThe npm installation is preferred, but Bower works, too.\n\n```sh\nbower install  --save videojs-gifplayer\n```\n\n## Usage\n\nTo include videojs-gifplayer on your website or web application, use any of the following methods.\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-gifplayer.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var player = videojs('my-video');\n\n  player.gifplayer();\n\u003c/script\u003e\n```\n\n### Browserify\n\nWhen using with Browserify, install videojs-gifplayer via npm and `require` the plugin as you would any other module.\n\n```js\nvar videojs = require('video.js');\n\n// The actual plugin function is exported by this module, but it is also\n// attached to the `Player.prototype`; so, there is no need to assign it\n// to a variable.\nrequire('videojs-gifplayer');\n\nvar player = videojs('my-video');\n\nplayer.gifplayer();\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-gifplayer'], function(videojs) {\n  var player = videojs('my-video');\n\n  player.gifplayer();\n});\n```\n\n### Options\n\ndefault options are:\n\n```js\n{\n  // options for videojs plugin\n  controls: false,\n  loop: true,\n  // options specific to videojs-gifplayer plugin\n  restartOnPause: true\n}\n```\n\n## License\n\nMIT. Copyright (c) John D. Johnson II \u0026lt;johnsonjo4531@gmail.com\u0026gt;\n\n\n[videojs]: http://videojs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsonjo4531%2Fvideojs-gifplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsonjo4531%2Fvideojs-gifplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsonjo4531%2Fvideojs-gifplayer/lists"}