{"id":42923229,"url":"https://github.com/soenneker/soenneker.blazor.videojs","last_synced_at":"2026-05-13T22:01:25.179Z","repository":{"id":335513181,"uuid":"1141908318","full_name":"soenneker/soenneker.blazor.videojs","owner":"soenneker","description":"A Blazor interop library for Video.js","archived":false,"fork":false,"pushed_at":"2026-04-05T09:04:26.000Z","size":526,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-05T11:02:31.225Z","etag":null,"topics":["blazor","blazorlibrary","csharp","dotnet","html5","interop","js","video","videojs","videojsinterop"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"CSS","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2026-01-25T16:33:02.000Z","updated_at":"2026-04-05T09:03:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"391e5480-a4c4-4e2b-be57-c3c5203967b6","html_url":"https://github.com/soenneker/soenneker.blazor.videojs","commit_stats":null,"previous_names":["soenneker/soenneker.blazor.videojs"],"tags_count":88,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.blazor.videojs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.videojs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.videojs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.videojs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.videojs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.blazor.videojs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.videojs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blazor","blazorlibrary","csharp","dotnet","html5","interop","js","video","videojs","videojsinterop"],"created_at":"2026-01-30T18:00:54.928Z","updated_at":"2026-04-07T21:01:28.463Z","avatar_url":"https://github.com/soenneker.png","language":"CSS","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.blazor.videojs.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.videojs/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.videojs/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.videojs/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.blazor.videojs.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.videojs/)\n[![](https://img.shields.io/badge/Demo-Live-blueviolet?style=for-the-badge\u0026logo=github)](https://soenneker.github.io/soenneker.blazor.videojs)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.videojs/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.videojs/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Blazor.Videojs\n### A Blazor interop library for Video.js\n\nThis library wraps Video.js with a strongly-typed Blazor component and configuration model. It auto-loads Video.js assets (CDN or local) and exposes common player events as `EventCallback`s.\n\nThe options closely mirror the Video.js options surface. Refer to the [Video.js options guide](https://videojs.com/guides/options/) for configuration details.\n\n## Installation\n\n```\ndotnet add package Soenneker.Blazor.Videojs\n```\n\n### Register services\n\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddVideoJsInteropAsScoped();\n}\n```\n\n## Usage\n\n```razor\n@using Soenneker.Blazor.Videojs\n@using Soenneker.Blazor.Videojs.Configuration\n@using Soenneker.Blazor.Videojs.Dtos\n\n\u003cVideoJs Configuration=\"@_config\" OnPlay=\"HandlePlay\" /\u003e\n\n@code {\n    private readonly VideoJsConfiguration _config = new()\n    {\n        Controls = true,\n        Autoplay = \"muted\",\n        Muted = true,\n        Fluid = true,\n        Responsive = true,\n        AspectRatio = \"16:9\",\n        Poster = \"https://vjs.zencdn.net/v/oceans.png\",\n        PlaybackRates = [0.5, 1, 1.5, 2],\n        ControlBar = new VideoJsControlBarOptions\n        {\n            SkipButtons = new VideoJsSkipButtonsOptions { Backward = 10, Forward = 10 }\n        },\n        Sources =\n        [\n            new VideoJsSource { Src = \"https://vjs.zencdn.net/v/oceans.mp4\", Type = \"video/mp4\" },\n            new VideoJsSource { Src = \"https://vjs.zencdn.net/v/oceans.webm\", Type = \"video/webm\" }\n        ]\n    };\n\n    private void HandlePlay()\n    {\n        // Your event logic here\n    }\n}\n```\n\n## Sources\n\nYou can provide sources through the configuration object (shown above) or via the component parameter:\n\n```razor\n\u003cVideoJs Configuration=\"@_config\" Sources=\"@_sources\" /\u003e\n```\n\n`Sources` overrides `Configuration.Sources` when provided.\n\n## CDN vs local assets\n\nThe interop will load Video.js from the CDN by default. To use the packaged static files instead, set:\n\n```csharp\nvar config = new VideoJsConfiguration\n{\n    UseCdn = false\n};\n```\n\n## Events\n\nThe component exposes common Video.js events as `EventCallback`s, including `OnReady`, `OnPlay`, `OnPause`, `OnEnded`, `OnTimeUpdate`, `OnLoadedMetadata`, `OnSeeking`, `OnSeeked`, `OnWaiting`, `OnPlaying`, `OnRateChange`, and more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.videojs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.videojs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.videojs/lists"}