{"id":23215786,"url":"https://github.com/7ds7/videojs-vjsdownload","last_synced_at":"2025-06-24T13:31:42.674Z","repository":{"id":57392324,"uuid":"50857608","full_name":"7Ds7/videojs-vjsdownload","owner":"7Ds7","description":"Adds a button to download the video inside a VideoJS player","archived":false,"fork":false,"pushed_at":"2024-03-23T00:11:17.000Z","size":57,"stargazers_count":20,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T06:07:21.193Z","etag":null,"topics":["download","videojs","videojs-player","videojs-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7Ds7.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}},"created_at":"2016-02-01T17:35:17.000Z","updated_at":"2025-01-20T00:01:42.000Z","dependencies_parsed_at":"2022-09-11T04:41:23.561Z","dependency_job_id":"6dd38cbf-cb1f-45db-ad52-d027d264b0ad","html_url":"https://github.com/7Ds7/videojs-vjsdownload","commit_stats":{"total_commits":28,"total_committers":4,"mean_commits":7.0,"dds":0.5357142857142857,"last_synced_commit":"162c7b255d016db663dc14422e5b5a1264e77d6b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/7Ds7/videojs-vjsdownload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7Ds7%2Fvideojs-vjsdownload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7Ds7%2Fvideojs-vjsdownload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7Ds7%2Fvideojs-vjsdownload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7Ds7%2Fvideojs-vjsdownload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7Ds7","download_url":"https://codeload.github.com/7Ds7/videojs-vjsdownload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7Ds7%2Fvideojs-vjsdownload/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261685530,"owners_count":23194123,"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":["download","videojs","videojs-player","videojs-plugin"],"created_at":"2024-12-18T20:18:57.779Z","updated_at":"2025-06-24T13:31:42.640Z","avatar_url":"https://github.com/7Ds7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videojs-vjsdownload\n\nAdds a button to download the video inside the player\n\n## Demo\nhttps://7ds7.github.io/videojs-vjsdownload/demo\n\nor\n\nhttps://codepen.io/binaryunit/pen/xxedpwp\n\n\n## Usage\nInclude the plugin files\n\n* videojs-vjsdownload.js\n* videojs-vjsdownload.css\n\nalso available trough ```npm install videojs-vjsdownload```\n\n\n```\nvar player = videojs(document.querySelector('.video-js'), {\n  plugins: {\n    vjsdownload:{\n      beforeElement: 'playbackRateMenuButton',\n      textControl: 'Download video',\n      name: 'downloadButton',\n      downloadURL: 'https://video_url.mp4' //optional if you need a different download url than the source\n    }\n  }\n} , function() {\n  console.log('Callback video-js initiated');\n  this.on('downloadvideo', function(){\n    console.log('downloadvideo triggered');\n  });\n});\n```\n\n## Options\n * beforeElement: name of the player.controlBar component for the button to be attached before (default:  fullscreenMenuToggle)\n * textControl: String for the controlText (default: 'Download Video')\n * name: name of the DownloadButton component (default: 'downloadButton')\n * downloadURL: oprional file to download (default: null)\n\n## Style\nBy default the download icon is a clip path, to include a custom icon please refer to videojs-vjsdownload.css file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7ds7%2Fvideojs-vjsdownload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7ds7%2Fvideojs-vjsdownload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7ds7%2Fvideojs-vjsdownload/lists"}