{"id":19738270,"url":"https://github.com/nickvisionapps/mpvsharp","last_synced_at":"2025-04-30T05:31:11.332Z","repository":{"id":180568405,"uuid":"665348286","full_name":"NickvisionApps/MPVSharp","owner":"NickvisionApps","description":"Use MPV in your C# apps","archived":false,"fork":false,"pushed_at":"2023-10-06T03:02:41.000Z","size":88793,"stargazers_count":7,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-10-07T03:22:37.573Z","etag":null,"topics":["audio","dotnet","mpv","multimedia","opengl","player","video"],"latest_commit_sha":null,"homepage":"","language":"C#","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/NickvisionApps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"nlogozzo","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-07-12T02:35:35.000Z","updated_at":"2023-10-04T02:12:30.000Z","dependencies_parsed_at":"2023-10-02T18:40:22.279Z","dependency_job_id":null,"html_url":"https://github.com/NickvisionApps/MPVSharp","commit_stats":null,"previous_names":["nickvisionapps/mpvsharp"],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickvisionApps%2FMPVSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickvisionApps%2FMPVSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickvisionApps%2FMPVSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickvisionApps%2FMPVSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NickvisionApps","download_url":"https://codeload.github.com/NickvisionApps/MPVSharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224197834,"owners_count":17271999,"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":["audio","dotnet","mpv","multimedia","opengl","player","video"],"created_at":"2024-11-12T01:13:44.555Z","updated_at":"2024-11-12T01:13:45.131Z","avatar_url":"https://github.com/NickvisionApps.png","language":"C#","funding_links":["https://github.com/sponsors/nlogozzo"],"categories":[],"sub_categories":[],"readme":"[![Nuget](https://img.shields.io/nuget/v/Nickvision.MPVSharp)](https://www.nuget.org/packages/Nickvision.MPVSharp/)\n\n# Nickvision.MPVSharp\n\n\u003cimg width='128' height='128' alt='Logo' src='Nickvision.MPVSharp/Resources/logo-r.svg'/\u003e\n\n **Use MPV in your C# apps**\n\nMPVSharp provides C# bindings for [libmpv](https://mpv.io/manual/master/#embedding-into-other-programs-libmpv), a library for embedding amazing [MPV](https://mpv.io/) player into another apps.\n\n# Installation\n**[MPVSharp](https://www.nuget.org/packages/Nickvision.MPVSharp/)** - main package, requires `libmpv` to be installed on the user system or provided together with your application (works on Windows and Linux).\n\n**[MPVSharp.Bundled](https://www.nuget.org/packages/Nickvision.MPVSharp.Bundled/)** - has `libmpv` built-in (Windows 64-bit only, the build is from [this repo](https://github.com/shinchiro/mpv-winbuild-cmake)).\n\n# How to use\n\nAPI documentation is available [here](https://nickvision.org/docs/mpvsharp/).\n\nThere are 2 namespaces:\n* **`Nickvision.MPVSharp.Internal`** provides objects and methods that closely follow libmpv C API. You can find functions from `client.h` in `MPVClient.cs` and functions from `render.h` in `MPVRenderContext.cs`\n* **`Nickvision.MPVSharp`** gives you another objects that work on top of `Internal` counterpart, but provides you with various helpers and convenience functions. They are easier to use, but the API is slightly different than in `Internal`, so you will probably want to read docs for [`Client.cs`](https://nickvision.org/docs/mpvsharp/api/Nickvision.MPVSharp.Client.html) to find what methods you can use.\n\nLook at the [examples](#examples) to get the basic idea how to use MPVSharp.\n\nThere are comments in the code, but they are mostly an adaptation of some parts of comments from libmpv, which is very well documented:\n* [client.h](https://github.com/mpv-player/mpv/blob/release/0.36/libmpv/client.h)\n* [render.h](https://github.com/mpv-player/mpv/blob/release/0.36/libmpv/render.h)\n* [renger_gl.h](https://github.com/mpv-player/mpv/blob/release/0.36/libmpv/render_gl.h)\n\nRefer to MPV documentation to find the list of [options](https://mpv.io/manual/stable/#options), [commands](https://mpv.io/manual/stable/#list-of-input-commands) and [properties](https://mpv.io/manual/stable/#properties).\n\n# Examples\n\n![GirCore Example](Examples/GirCore/Screenshot.png)\n\n\u003csub\u003eGirCore example playing [Charge](https://www.youtube.com/watch?v=UXqq0ZvbOnk) - Blender open movie, licensed under CC BY 4.0\u003c/sub\u003e\n\n* [Simple](Examples/Simple) - basic program playing your file/link. If the file is video, a window will be created by MPV itself.\n* [GirCore](Examples/GirCore) - GTK4 application playing a video from youtube. Made with [GirCore](https://github.com/gircore/gir.core). Requires GTK4 to be installed.\n* [OpenGL](Examples/OpenGL) - [OpenTK](https://opentk.net/index.html) application playing a video from youtube.\n\n# Chat\n\u003ca href='https://matrix.to/#/#nickvision:matrix.org'\u003e\u003cimg width='140' alt='Join our room' src='https://user-images.githubusercontent.com/17648453/196094077-c896527d-af6d-4b43-a5d8-e34a00ffd8f6.png'/\u003e\u003c/a\u003e\n\n# Dependencies\n- [.NET 7](https://dotnet.microsoft.com/en-us/)\n- libmpv\n\n# Code of Conduct\n\nThis project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickvisionapps%2Fmpvsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickvisionapps%2Fmpvsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickvisionapps%2Fmpvsharp/lists"}