Plugin System
9 hours ago
- #JavaScript
- #Plugin
- #IINA
- IINA's plugin system allows extending functionality with JavaScript, available from version 1.4.0.
- Features include playback control, mpv API access, network and file system operations, and custom UI elements.
- The Official User Scripts plugin enables easy copy-and-paste of code snippets without package creation.
- Examples include displaying video titles in large fonts and minimizing windows when paused.
- Core capabilities cover playback control, window status, subtitle tracks, and more.
- MPV API access allows advanced playback control with properties and hooks.
- Event handling includes registering and removing listeners for IINA and mpv events.
- HTTP and XMLRPC requests can be made, alongside playlist and subtitle management.
- Custom menu items, overlays, sidebar views, and standalone windows can be added.
- Global controller for multiple player instances, file system access, and preferences storage.
- Utilities include system dialogs, custom executables, and debugging logs.
- The iina-plugin command line tool aids in creating, building, and running plugins.
- Complete documentation is available at docs.iina.io, with TypeScript definitions included.