![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
mpc-hc-control
Advanced tools
Basic control over Media Player Classic - Home Cinema via http api.
Enable web interface in mpc-hc settings.
npm i mpc-hc-control
const {MpcControl} = require("mpc-hc-control");
const mpcApi = new MpcControl("localhost", 13579);
mpcApi.openFile("c:\\video.mkv"));
mpcApi.setVolume(75);
Basic methods list:
/**
* @filePath - path to video file
*/
openFile(filePath: string): Promise<any>;
isPlaying(): Promise<boolean>
isPaused(): Promise<boolean>
isStopped(): Promise<boolean>
isMuted(): Promise<boolean>
getVolume(): Promise<number>
getPosition(): Promise<IPositionInfo>
interface IPositionInfo {
duration: number;
position: number;
}
play(): Promise<void>
pause(): Promise<void>
togglePlay(): Promise<void>
stop(): Promise<boolean>
toggleFullscreen(): Promise<void>
/**
* @position - new position in ms
*/
seek(position: number): Promise<void>
/**
* @delta - delta from current position in ms
*/
async jump(delta: number): Promise<void>
skipBack(): Promise<void>
skipForward(): Promise<void>
/**
* @volume - new volume in percents
*/
setVolume(volume: number): Promise<void>
toggleMute(): Promise<void>
nextAudioTrack(): Promise<void>
prevAudioTrack(): Promise<void>
nextSubtitles(): Promise<void>
prevSubtitles(): Promise<void>
getVariables(): Promise<IPlayerVariables>
interface IPlayerVariables {
version: string;
file: string;
filepath: string;
filedir: string;
size: string;
state: number;
statestring: string;
position: number;
positionstring: string;
duration: number;
durationstring: string;
volumelevel: number;
muted: boolean;
}
Also you can use:
/**
* @commandId - any mpc-hc supported command from commands/mpcCommands.ts
* @data - additional data provided in to api call
*/
execute(commandId: MpcCommands, data?: Dictionary<any>): Promise<any>
FAQs
Lib for control Media Player Classic - Home Cinema via HTTP API
The npm package mpc-hc-control receives a total of 7 weekly downloads. As such, mpc-hc-control popularity was classified as not popular.
We found that mpc-hc-control demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.