MPV
Interact with the user's MPV instance.
Permissions
playback permission is required
{
//...
"plugin": {
"permissions": {
"scopes": ["playback"]
}
}
}Core Methods
openAndPlay
Opens and plays a file with MPV (without tracking).
Parameters:
filePath: String - Path to a video file
Example:
onEvent
Registers a listener for MPV player events (fires frequently).
Parameters:
callback: Function(event, closed) - Callback function for events
Example:
getConnection
Returns the underlying connection object to the MPV instance.
Returns: MpvConnection | undefined - The MPV connection if available
stop
Stops the MPV player.
Example:
Last updated