{"id":13835608,"url":"https://github.com/woodruffw/ruby-mpv","last_synced_at":"2025-04-16T03:14:17.767Z","repository":{"id":52406380,"uuid":"78810249","full_name":"woodruffw/ruby-mpv","owner":"woodruffw","description":"A Ruby library for controlling mpv processes.","archived":false,"fork":false,"pushed_at":"2021-04-29T22:33:56.000Z","size":41,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-16T03:13:57.130Z","etag":null,"topics":["mpv","ruby","ruby-gem","ruby-library"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mpv","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woodruffw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-13T03:06:23.000Z","updated_at":"2023-07-15T18:38:29.000Z","dependencies_parsed_at":"2022-08-20T23:40:41.769Z","dependency_job_id":null,"html_url":"https://github.com/woodruffw/ruby-mpv","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Fruby-mpv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Fruby-mpv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Fruby-mpv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Fruby-mpv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woodruffw","download_url":"https://codeload.github.com/woodruffw/ruby-mpv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188429,"owners_count":21227015,"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","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":["mpv","ruby","ruby-gem","ruby-library"],"created_at":"2024-08-04T14:01:06.265Z","updated_at":"2025-04-16T03:14:17.744Z","avatar_url":"https://github.com/woodruffw.png","language":"Ruby","funding_links":[],"categories":["Other"],"sub_categories":[],"readme":"ruby-mpv\n========\n\n[![Gem Version](https://badge.fury.io/rb/mpv.svg)](https://badge.fury.io/rb/mpv)\n\nA ruby library for controlling mpv processes.\n\n### Installation\n\n```bash\n$ gem install mpv\n```\n\n### Example\n\nFor full documentation, please see the\n[RubyDocs](http://www.rubydoc.info/gems/mpv/).\n\n```ruby\n# this will be called every time mpv sends an event back over the socket\ndef something_happened(event)\n  puts \"look ma! a callback: #{event.to_s}\"\nend\n\nsession = MPV::Session.new # contains both a MPV::Server and a MPV::Client\nsession.callbacks \u003c\u003c method(:something_happened)\nsession.get_property \"pause\"\nsession.command \"get_version\"\nsession.command \"loadlist\", \"my_huge_playlist.txt\", \"append\"\nsession.quit!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Fruby-mpv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodruffw%2Fruby-mpv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Fruby-mpv/lists"}