{"id":15724013,"url":"https://github.com/jazzfool/iced_video_player","last_synced_at":"2025-04-03T02:10:18.399Z","repository":{"id":41410823,"uuid":"288734650","full_name":"jazzfool/iced_video_player","owner":"jazzfool","description":"Video player component for Iced","archived":false,"fork":false,"pushed_at":"2024-04-13T03:31:17.000Z","size":11620,"stargazers_count":68,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T07:36:38.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jazzfool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2020-08-19T13:07:57.000Z","updated_at":"2024-06-20T03:44:08.355Z","dependencies_parsed_at":"2024-04-13T04:42:56.966Z","dependency_job_id":null,"html_url":"https://github.com/jazzfool/iced_video_player","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/jazzfool%2Ficed_video_player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Ficed_video_player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Ficed_video_player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Ficed_video_player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzfool","download_url":"https://codeload.github.com/jazzfool/iced_video_player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922247,"owners_count":20855345,"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":[],"created_at":"2024-10-03T22:14:20.693Z","updated_at":"2025-04-03T02:10:18.375Z","avatar_url":"https://github.com/jazzfool.png","language":"Rust","funding_links":[],"categories":["Custom Widgets"],"sub_categories":[],"readme":"# Iced Video Player Widget\n\nComposable component to play videos in any Iced application built on the excellent GStreamer library.\n\n\u003cimg src=\".media/screenshot.png\" width=\"50%\" /\u003e\n\n## Overview\n\nIn general, this supports anything that [`gstreamer/playbin`](https://gstreamer.freedesktop.org/documentation/playback/playbin.html?gi-language=c) supports.\n\nFeatures:\n- Load video files from any file path **or URL** (support for streaming over network).\n- Video buffering when streaming on a network.\n- Audio support.\n- Programmatic control.\n- Can capture thumbnails from a set of timestamps.\n- Good performance (i.e., comparable to other video players). GStreamer (with the right plugins) will perform hardware-accelerated decoding, and the color space (YUV to RGB) is converted on the GPU whilst rendering the frame.\n\nLimitations (hopefully to be fixed):\n- GStreamer is a bit annoying to set up on Windows.\n\nThe player **does not** come with any surrounding GUI controls, but they should be quite easy to implement should you need them.\nSee the \"minimal\" example for a demonstration on how you could implement pausing, looping, and seeking.\n\n## Example Usage\n\n```rust\nuse iced_video_player::{Video, VideoPlayer};\n\nfn main() -\u003e iced::Result {\n    iced::run(\"Video Player\", (), App::view)\n}\n\nstruct App {\n    video: Video,\n}\n\nimpl Default for App {\n    fn default() -\u003e Self {\n        App {\n            video: Video::new(\u0026url::Url::parse(\"file:///C:/my_video.mp4\").unwrap()).unwrap(),\n        }\n    }\n}\n\nimpl App {\n    fn view(\u0026self) -\u003e iced::Element\u003c()\u003e {\n        VideoPlayer::new(\u0026self.video).into()\n    }\n}\n```\n\n## Building\n\nFollow the [GStreamer build instructions](https://github.com/sdroege/gstreamer-rs#installation). This should be able to compile on MSVC, MinGW, Linux, and MacOS.\n\n## License\n\nLicensed under either\n\n- [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n- [MIT](http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzfool%2Ficed_video_player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzfool%2Ficed_video_player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzfool%2Ficed_video_player/lists"}