All Projects → blang → mpv

blang / mpv

Licence: MIT License
mpv remote control library written in golang

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to mpv

playercast
Cast to media player and control playback remotely.
Stars: ✭ 46 (+31.43%)
Mutual labels:  mpv, media-player
Kawaii Player
Multimedia player, media library manager and portable media server with PC-To-PC casting feature.
Stars: ✭ 397 (+1034.29%)
Mutual labels:  mpv, media-player
Mpv Easy Player
MPV-EASY Player - A movie player based on mpv
Stars: ✭ 324 (+825.71%)
Mutual labels:  mpv, media-player
Celluloid
A simple GTK+ frontend for mpv
Stars: ✭ 541 (+1445.71%)
Mutual labels:  mpv, media-player
Glow
mpv Config File Generator for Windows
Stars: ✭ 167 (+377.14%)
Mutual labels:  mpv, media-player
vscode-mediaplayer
Mediaplayer extention for VS Code
Stars: ✭ 18 (-48.57%)
Mutual labels:  mpv, media-player
Mpc Qt
Media Player Classic Qute Theater
Stars: ✭ 345 (+885.71%)
Mutual labels:  mpv, media-player
Mpv.net
🎞 mpv.net is a modern media player for Windows that works just like mpv.
Stars: ✭ 737 (+2005.71%)
Mutual labels:  mpv, media-player
Mpvc
An mpc-like control interface for mpv.
Stars: ✭ 94 (+168.57%)
Mutual labels:  mpv, media-player
Python Mpv
Python interface to the awesome mpv media player
Stars: ✭ 245 (+600%)
Mutual labels:  mpv, media-player
mpc-qt
Media Player Classic Qute Theater
Stars: ✭ 125 (+257.14%)
Mutual labels:  mpv, media-player
kaltura-player-js
Kaltura Player JS Platform - Cloud TV and OVP Media Players
Stars: ✭ 83 (+137.14%)
Mutual labels:  media-player
pymusiccast
Group MusicCast Speakers with Home Assistant
Stars: ✭ 34 (-2.86%)
Mutual labels:  media-player
ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (-14.29%)
Mutual labels:  media-player
home-assistant-custom-components-linkplay
LinkPlay based media devices integration for Home Assistant. Fully compatible with Mini Media Player card including speaker group management. Supports snapshot and restore functionality for TTS.
Stars: ✭ 62 (+77.14%)
Mutual labels:  media-player
soube
Music player based on electronjs
Stars: ✭ 32 (-8.57%)
Mutual labels:  media-player
MPV lazy
🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助萌新入门 ; mpv-lazy 懒人包 win10 x64
Stars: ✭ 615 (+1657.14%)
Mutual labels:  mpv
mpv-youtube-upnext
A userscript for MPV that allows you to play "up next"/recommended youtube videos ⏭️
Stars: ✭ 29 (-17.14%)
Mutual labels:  mpv
HPlayer2
Modular Media Player for Raspberry Pi and more...
Stars: ✭ 28 (-20%)
Mutual labels:  mpv
mpv-image-viewer
Configuration, scripts and tips for using mpv as an image viewer
Stars: ✭ 157 (+348.57%)
Mutual labels:  mpv

mpv (remote) control library

This library provides everything needed to (remote) control the mpv media player.

It provides an easy api, a json api and rpc functionality.

Usecases: Remote control your mediaplayer running on a raspberry pi or laptop or build a http interface for mpv

Usage

$ go get github.com/blang/mpv

Note: Always vendor your dependencies or fix on a specific version tag.

Start mpv:

$ mpv --idle --input-ipc-server=/tmp/mpvsocket

Remote control:

import github.com/blang/mpv

ipcc := mpv.NewIPCClient("/tmp/mpvsocket") // Lowlevel client
c := mpv.NewClient(ipcc) // Highlevel client, can also use RPCClient

c.LoadFile("movie.mp4", mpv.LoadFileModeReplace)
c.SetPause(true)
c.Seek(600, mpv.SeekModeAbsolute)
c.SetFullscreen(true)
c.SetPause(false)

pos, err := c.Position()
fmt.Printf("Position in Seconds: %.0f", pos)

Also check the GoDocs.

Features

  • Low-Level and High-Level API
  • RPC Server and Client (fully transparent)
  • HTTP Handler exposing lowlevel API (json)

Contribution

Feel free to make a pull request. For bigger changes create a issue first to discuss about it.

License

See LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].