{"id":15672568,"url":"https://github.com/nylen/node-web-media-player","last_synced_at":"2025-05-06T21:27:42.503Z","repository":{"id":5343052,"uuid":"6528784","full_name":"nylen/node-web-media-player","owner":"nylen","description":"Super simple media player controller designed for Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2015-01-04T03:31:25.000Z","size":858,"stargazers_count":15,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T19:06:48.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/nylen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-04T09:08:03.000Z","updated_at":"2020-07-09T12:57:47.000Z","dependencies_parsed_at":"2022-09-19T09:10:28.352Z","dependency_job_id":null,"html_url":"https://github.com/nylen/node-web-media-player","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylen%2Fnode-web-media-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylen%2Fnode-web-media-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylen%2Fnode-web-media-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylen%2Fnode-web-media-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nylen","download_url":"https://codeload.github.com/nylen/node-web-media-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252771247,"owners_count":21801680,"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-10-03T15:28:27.066Z","updated_at":"2025-05-06T21:27:42.474Z","avatar_url":"https://github.com/nylen.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js web media player [![Build status](https://img.shields.io/travis/nylen/node-web-media-player.svg?style=flat)](https://travis-ci.org/nylen/node-web-media-player) [![npm package](http://img.shields.io/npm/v/web-media-player.svg?style=flat)](https://www.npmjs.org/package/web-media-player)\n\nThis application allows you to control a simple media player via a web\ninterface.  I wrote it so that I could play video files on my Raspberry Pi.\n\nThis could really use some AJAX features - right now the state is only\nrefreshed when a new page is requested.  I might work on this in the future.\n\n## Getting started\n\n- [Install node.js](https://github.com/joyent/node/wiki/Installation).\n\n- `git clone https://github.com/nylen/node-web-media-player.git`\n  (or `npm install web-media-player`)\n\n- `cd node-web-media-player` and `npm install`\n\n- Copy one of the example config files to `config/default.yml` and edit as\n  needed.\n\n- `node server.js`\n\n## Configuration settings\n\n- **player.mediaPath** - the root path for your media files.\n\n- **player.mount.ifNotExists** and **player.mount.command** - if these settings\n  are present, then check whether the file specified by **ifNotExists** exists\n  (relative to the **mediaPath**), and if it doesn't, then run the command\n  specified by **command**.  This feature can be used to automatically mount\n  the media storage directory.   Use `%d` for the path to the media storage\n  directory, if needed.\n\n- **player.commands.start** - the command that should be used to run the media\n  player for a file.  This should be a command-line media player like `mplayer`\n  or `omxplayer`.  Use `%f` for the filename.\n\n- **player.commands.kill** - the command that should be used to kill the media\n  player.  This is only used as a last resort if sending\n  **player.controls.exit** doesn't work.\n\n- **player.controls.(play|pause|exit)** - the keypresses that should be sent to\n  the `stdin` of the media player process to perform the desired action.  This\n  should work as if you had started the media player on the command line and\n  pressed the specified key(s).  **player.controls.exit** should stop the\n  player and cause the process to exit.\n\n- **player.controls.seek** - a dictionary where the keys are positive or\n  negative numbers of seconds (given as strings), and the values are the key\n  sequences needed to make the media player seek by the given number of\n  seconds.\n\n- **player.exitTimeout** - when **player.controls.exit** is sent, wait for this\n  amount of time in milliseconds.  If the player process has not exited by\n  then, kill it.  If specified, **player.commands.kill** will be used.\n  Otherwise, the player process will be sent a `SIGTERM` (which does not seem\n  to work with `omxplayer`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnylen%2Fnode-web-media-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnylen%2Fnode-web-media-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnylen%2Fnode-web-media-player/lists"}