{"id":13908616,"url":"https://github.com/videojs/videojs-playlist","last_synced_at":"2025-07-18T07:31:41.604Z","repository":{"id":27737648,"uuid":"31225356","full_name":"videojs/videojs-playlist","owner":"videojs","description":"Playlist plugin for videojs","archived":false,"fork":false,"pushed_at":"2024-10-07T15:31:00.000Z","size":2674,"stargazers_count":374,"open_issues_count":53,"forks_count":124,"subscribers_count":58,"default_branch":"main","last_synced_at":"2025-07-05T20:44:10.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-23T19:30:43.000Z","updated_at":"2025-06-16T01:34:09.000Z","dependencies_parsed_at":"2024-01-17T21:35:38.703Z","dependency_job_id":"6c369c80-9a54-431e-a62c-4e688090824d","html_url":"https://github.com/videojs/videojs-playlist","commit_stats":{"total_commits":198,"total_committers":23,"mean_commits":8.608695652173912,"dds":0.5606060606060606,"last_synced_commit":"f84686266a55cfa989209d9dcd19d5e2f7d38f61"},"previous_names":["brightcove/videojs-playlist"],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/videojs/videojs-playlist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videojs","download_url":"https://codeload.github.com/videojs/videojs-playlist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-playlist/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720599,"owners_count":23817269,"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":"2024-08-06T23:02:52.102Z","updated_at":"2025-07-18T07:31:41.285Z","avatar_url":"https://github.com/videojs.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# videojs-playlist\n\n[![Build Status](https://travis-ci.org/brightcove/videojs-playlist.svg?branch=master)](https://travis-ci.org/brightcove/videojs-playlist)\n[![Greenkeeper badge](https://badges.greenkeeper.io/brightcove/videojs-playlist.svg)](https://greenkeeper.io/)\n[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)\n\n[![NPM](https://nodei.co/npm/videojs-playlist.png?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/videojs-playlist/)\n\nA plugin to enable playlists in video.js\n\nMaintenance Status: Stable\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Installation](#installation)\n- [Inclusion](#inclusion)\n- [Basic Usage](#basic-usage)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\nInstall videojs-playlist via npm (preferred):\n\n```sh\n$ npm install videojs-playlist\n```\n\n## Inclusion\n\nInclude videojs-playlist on your website using the tool(s) of your choice.\n\nThe simplest method of inclusion is a `\u003cscript\u003e` tag after the video.js `\u003cscript\u003e` tag:\n\n```html\n\u003cscript src=\"path/to/video.js/dist/video.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/videojs-playlist/dist/videojs-playlist.js\"\u003e\u003c/script\u003e\n```\n\nWhen installed via npm, videojs-playlist supports Browserify-based workflows out of the box.\n\n## Basic Usage\n\nFor full details on how to use the playlist plugin can be found in [the API documentation](docs/api.md).\n\n```js\n// Initialize Video.js player\nconst player = videojs('video');\n\n// Initialize the playlist plugin\nconst playlistPlugin = player.playlistPlugin();\n\n// Retrieve the PlaylistPlugin class\n// This is used to access static methods of the PlaylistPlugin\nconst PlaylistPluginClass = videojs.getPlugin('playlistPlugin');\n\nconst videoList = [{\n  sources: [{\n    src: 'http://media.w3.org/2010/05/sintel/trailer.mp4',\n    type: 'video/mp4'\n  }],\n  poster: 'http://media.w3.org/2010/05/sintel/poster.png'\n}, {\n  sources: [{\n    src: 'http://media.w3.org/2010/05/bunny/trailer.mp4',\n    type: 'video/mp4'\n  }],\n  poster: 'http://media.w3.org/2010/05/bunny/poster.png'\n}, {\n  sources: [{\n    src: 'http://vjs.zencdn.net/v/oceans.mp4',\n    type: 'video/mp4'\n  }],\n  poster: 'http://www.videojs.com/img/poster.jpg'\n}];\n\n// Create a new Playlist instance from the video list\n// This utilizes a static method of the PlaylistPlugin class to create a Playlist instance\nconst playlist = PlaylistPluginClass.createPlaylistFrom(videoList);\n\n// Playlist methods - Manage Playlist Content and Indexing\n// Methods under Playlist are focused on direct manipulation of the playlist content (add, remove, shuffle, reverse etc)\n// and controlling playlist indexing (getNextIndex, getPreviousIndex, enableRepeat, disableRepeat, etc), but not how the player uses the playlist\nplaylist.add({\n  // video item details\n});\nplaylist.remove(0);\nplaylist.shuffle();\nplaylist.reverse();\nplaylist.enableRepeat();\nplaylist.disableRepeat();\n\n// Plugin methods - Integrate Playlist with the Player\n// Methods under PlaylistPlugin are focused on how the playlist is used by the player\n// This includes loading the playlist into the player, handling playback, and setting auto-advance behavior\nplaylistPlugin.loadPlaylist(playlist);\nplaylistPlugin.loadFirstItem();\nplaylistPlugin.setAutoadvanceDelay(0);\n\n// Play the currently loaded playlist item\nplayer.play();\n```\n\n## License\n\nApache-2.0. Copyright (c) Brightcove, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-playlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideojs%2Fvideojs-playlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-playlist/lists"}