{"id":17087534,"url":"https://github.com/rzcoder/mpc-hc-control","last_synced_at":"2025-10-07T09:59:26.702Z","repository":{"id":32737839,"uuid":"141336527","full_name":"rzcoder/mpc-hc-control","owner":"rzcoder","description":"Basic api for control over MPC-HC","archived":false,"fork":false,"pushed_at":"2024-01-09T12:18:30.000Z","size":29,"stargazers_count":12,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T02:27:30.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzcoder.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-17T19:51:18.000Z","updated_at":"2024-09-26T03:45:26.000Z","dependencies_parsed_at":"2025-01-02T19:42:36.651Z","dependency_job_id":"1c918a60-4872-48c4-953f-0cdb47e6e78d","html_url":"https://github.com/rzcoder/mpc-hc-control","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.23529411764705888","last_synced_commit":"4d95921f9d05306b4ce6c5f7a433b8dde01cf368"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rzcoder/mpc-hc-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcoder%2Fmpc-hc-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcoder%2Fmpc-hc-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcoder%2Fmpc-hc-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcoder%2Fmpc-hc-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzcoder","download_url":"https://codeload.github.com/rzcoder/mpc-hc-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcoder%2Fmpc-hc-control/sbom","scorecard":{"id":793345,"data":{"date":"2025-08-11","repo":{"name":"github.com/rzcoder/mpc-hc-control","commit":"4d95921f9d05306b4ce6c5f7a433b8dde01cf368"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T08:12:19.880Z","repository_id":32737839,"created_at":"2025-08-23T08:12:19.880Z","updated_at":"2025-08-23T08:12:19.880Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278755161,"owners_count":26040034,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-10-14T13:33:56.577Z","updated_at":"2025-10-07T09:59:26.682Z","avatar_url":"https://github.com/rzcoder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPC-HC Control\n\nBasic control over [Media Player Classic - Home Cinema](https://mpc-hc.org/) via http api.\n\n## Setup\nEnable web interface in mpc-hc settings.\n \n`npm i mpc-hc-control`\n\n## Usage\n \n```ts\nconst {MpcControl} = require(\"mpc-hc-control\");\n \nconst mpcApi = new MpcControl(\"localhost\", 13579);\nmpcApi.openFile(\"c:\\\\video.mkv\"));\nmpcApi.setVolume(75);\n```\n\n## Methods list\n\nBasic methods list:\n```ts\n/**\n * @filePath - path to video file\n */\nopenFile(filePath: string): Promise\u003cany\u003e;\n```\n\n```ts\nisPlaying(): Promise\u003cboolean\u003e\n```\n\n```ts\nisPaused(): Promise\u003cboolean\u003e\n```\n\n```ts\nisStopped(): Promise\u003cboolean\u003e\n```\n\n```ts\nisMuted(): Promise\u003cboolean\u003e\n```\n\n```ts\ngetVolume(): Promise\u003cnumber\u003e\n```\n\n```ts\ngetPosition(): Promise\u003cIPositionInfo\u003e\n\ninterface IPositionInfo {\n    duration: number;\n    position: number;\n}\n```\n\n```ts\nplay(): Promise\u003cvoid\u003e\n```\n\n```ts\npause(): Promise\u003cvoid\u003e\n```\n\n```ts\ntogglePlay(): Promise\u003cvoid\u003e\n```\n\n```ts\nstop(): Promise\u003cboolean\u003e\n```\n\n```ts\ntoggleFullscreen(): Promise\u003cvoid\u003e\n```\n\n```ts\n/**\n * @position - new position in ms\n */\nseek(position: number): Promise\u003cvoid\u003e\n```\n\n```ts\n/**\n * @delta - delta from current position in ms\n */\nasync jump(delta: number): Promise\u003cvoid\u003e\n```\n\n```ts\nskipBack(): Promise\u003cvoid\u003e\n```\n\n```ts\nskipForward(): Promise\u003cvoid\u003e\n```\n\n```ts\n/**\n * @volume - new volume in percents\n */\nsetVolume(volume: number): Promise\u003cvoid\u003e\n```\n\n```ts\ntoggleMute(): Promise\u003cvoid\u003e\n```\n\n```ts\nnextAudioTrack(): Promise\u003cvoid\u003e\n```\n\n```ts\nprevAudioTrack(): Promise\u003cvoid\u003e\n```\n\n```ts\nnextSubtitles(): Promise\u003cvoid\u003e\n```\n\n```ts\nprevSubtitles(): Promise\u003cvoid\u003e\n```\n\n```ts\ngetVariables(): Promise\u003cIPlayerVariables\u003e\n\ninterface IPlayerVariables {\n    version: string;\n\n    file: string;\n    filepath: string;\n    filedir: string;\n    size: string;\n\n    state: number;\n    statestring: string;\n\n    position: number;\n    positionstring: string;\n    duration: number;\n    durationstring: string;\n\n    volumelevel: number;\n    muted: boolean;\n}\n```\n\nAlso you can use:\n\n```ts\n/**\n * @commandId - any mpc-hc supported command from commands/mpcCommands.ts\n * @data - additional data provided in to api call\n */\nexecute(commandId: MpcCommands, data?: Dictionary\u003cany\u003e): Promise\u003cany\u003e\n```  \n \n \n\n\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzcoder%2Fmpc-hc-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzcoder%2Fmpc-hc-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzcoder%2Fmpc-hc-control/lists"}