{"id":17101473,"url":"https://github.com/valderman/haskell-mpv","last_synced_at":"2025-03-23T19:18:06.601Z","repository":{"id":66264401,"uuid":"195868474","full_name":"valderman/haskell-mpv","owner":"valderman","description":"Thread-safe Haskell wrapper around libmpv","archived":false,"fork":false,"pushed_at":"2019-07-09T20:05:46.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T02:25:12.737Z","etag":null,"topics":["haskell","haskell-library","libmpv","library","media-playback"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valderman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-08T18:45:50.000Z","updated_at":"2024-10-18T23:50:02.000Z","dependencies_parsed_at":"2023-06-12T20:00:16.864Z","dependency_job_id":null,"html_url":"https://github.com/valderman/haskell-mpv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valderman%2Fhaskell-mpv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valderman%2Fhaskell-mpv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valderman%2Fhaskell-mpv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valderman%2Fhaskell-mpv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valderman","download_url":"https://codeload.github.com/valderman/haskell-mpv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153892,"owners_count":20569408,"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":["haskell","haskell-library","libmpv","library","media-playback"],"created_at":"2024-10-14T15:25:23.430Z","updated_at":"2025-03-23T19:18:06.564Z","avatar_url":"https://github.com/valderman.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"haskell-mpv\n===========\n\nA thread-safe, mid-level Haskell wrapper around [libmpv](https://mpv.io/).\n\n\nUsage\n-----\n\nA very spartan media player in 18 lines, using `Codec.MPV.Simple`:\n\n```haskell\nmodule Main where\nimport Codec.MPV.Simple\nimport Control.Concurrent (MVar, newEmptyMVar, putMVar, takeMVar)\nimport System.Environment (getArgs)\n\nmain :: IO ()\nmain = do\n  files \u003c- getArgs\n  fileDone \u003c- newEmptyMVar\n  mpv \u003c- simpleMPV simpleSettings { eventHandler = handleEOF fileDone }\n  mapM_ (playFile mpv fileDone) files\n\nhandleEOF :: MVar () -\u003e MPV -\u003e MPVEvent -\u003e IO ()\nhandleEOF fileDone mpv (EndFileEvent _) = putMVar fileDone ()\nhandleEOF fileDone mpv _                = return ()\n\nplayFile :: MPV -\u003e MVar () -\u003e FilePath -\u003e IO ()\nplayFile mpv fileDone file = loadFile mpv file \u003e\u003e takeMVar fileDone\n```\n\nFor more control over rendering, window management, and the MPV event loop,\nuse `Codec.MPV` instead.\n\n\nTroubleshooting\n---------------\n\n### I don't get any video output!\n\n* Did you create an OpenGL rendering context and set it as the current context\n  (`glMakeCurrent`)?\n* Are you calling `renderFrame` in response to `RenderEvent`s?\n* Are you properly presenting your rendering buffer after calling `renderFrame`\n  (`glSwapBuffers`)?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalderman%2Fhaskell-mpv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalderman%2Fhaskell-mpv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalderman%2Fhaskell-mpv/lists"}