{"id":16352200,"url":"https://github.com/mfkl/libvlcsharp.android.awindow","last_synced_at":"2026-04-09T07:03:53.994Z","repository":{"id":71410665,"uuid":"129594659","full_name":"mfkl/LibVLCSharp.Android.AWindow","owner":"mfkl","description":"Tiny Android binding project to allow running libvlc on Xamarin.Android","archived":false,"fork":false,"pushed_at":"2020-11-24T06:27:59.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-28T17:52:34.448Z","etag":null,"topics":["android","binding","csharp","java","libvlc","vlc","xamarin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfkl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-15T09:18:07.000Z","updated_at":"2024-06-07T02:50:07.000Z","dependencies_parsed_at":"2023-04-07T23:47:20.314Z","dependency_job_id":null,"html_url":"https://github.com/mfkl/LibVLCSharp.Android.AWindow","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/mfkl%2FLibVLCSharp.Android.AWindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkl%2FLibVLCSharp.Android.AWindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkl%2FLibVLCSharp.Android.AWindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkl%2FLibVLCSharp.Android.AWindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfkl","download_url":"https://codeload.github.com/mfkl/LibVLCSharp.Android.AWindow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239619603,"owners_count":19669447,"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":["android","binding","csharp","java","libvlc","vlc","xamarin"],"created_at":"2024-10-11T01:25:18.139Z","updated_at":"2025-11-19T01:30:15.878Z","avatar_url":"https://github.com/mfkl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibVLCSharp.Android.AWindow\nSmall android binding project\n\nSetting up `libvlc` for Android requires, amongst other things, calling this C function\n```\nLIBVLC_API void libvlc_media_player_set_android_context( \t\n    libvlc_media_player_t *  \tp_mi,\n\t\tvoid *  \tp_awindow_handler \n\t) \t\t\n```\n\nThe documentation for the second parameter explains `p_awindow_handler: org.videolan.libvlc.AWindow jobject owned by the org.videolan.libvlc.MediaPlayer class from the libvlc-android project.`\n\nSo we will create an automatically generated binding for this class only, and pass a pointer to it to C code from C#.\n\n_TODO: check Android API the Java code is compiled against._\n\n## How to make your own binding\n\n### Compile the relevant java code\n\n- Get the sources (3.3.8): https://bintray.com/videolan/Android/download_file?file_path=org%2Fvideolan%2Fandroid%2Flibvlc-all%2F3.3.8%2Flibvlc-all-3.3.8-sources.jar\n- Get the .so files https://bintray.com/videolan/Android/download_file?file_path=org%2Fvideolan%2Fandroid%2Flibvlc-all%2F3.3.8%2Flibvlc-all-3.3.8.aar\n\nAs of libvlc 3.0, you need to extract 3 Java files.\n- `AndroidUtil`\n- `AWindow`\n- `IVLCVout`\n\n- Put them at this location `MyApplication\\org.videolan.libvlc\\src\\main\\java`.\n\n- Install gradle from choco https://chocolatey.org/packages/gradle\n\n- run `gradle wrapper`\n\n- finally run `.\\gradlew assembleRelease` from `LibVLCSharp.Android.AWindow\\MyApplication`\n\nExtract the aar file from \n\n`LibVLCSharp.Android.AWindow\\MyApplication\\org.videolan.libvlc\\build\\outputs\\aar` \n\nand copy it to\n\n`LibVLCSharp.Android.AWindow\\LibVLCSharp.Android.AWindow\\Jars`.\n\nOn the C#, make sure the .aar file is referenced in your `csproj` file and the build action is marked as `LibraryProjectZip`.\n\n-\u003e Build.\n\nThe resulting dll is part of `LibVLCSharp.Android`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfkl%2Flibvlcsharp.android.awindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfkl%2Flibvlcsharp.android.awindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfkl%2Flibvlcsharp.android.awindow/lists"}