docs.rs failed to build iced_video_player-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Iced Video Player Widget
Composable component to play videos in any Iced application built on the excellent GStreamer library.
Overview
In general, this supports anything that gstreamer/playbin supports.
Features:
- Load video files from any file path or URL (support for streaming over network).
- Video buffering when streaming on a network.
- Audio support.
- Programmatic control.
- Capture thumbnails from a set of timestamps.
- Decent performance. Skips a lot of the overhead from Iced
Imageand copies frame data directly to a WGPU texture, and renders using a custom WGPU render pipeline. For a very subjective reference, I can play back 1080p HEVC video with hardware decoding without hitches, in debug mode.
Limitations (hopefully to be fixed):
- GStreamer is a bit annoying to set up on Windows.
The player does not come with any surrounding GUI controls, but they should be quite easy to implement should you need them. See the "minimal" example for a demonstration on how you could implement pausing, looping, and seeking.
Example Usage
use ;
use ;
Building
Follow the GStreamer build instructions. This should be able to compile on MSVC, MinGW, Linux, and MacOS.
License
Licensed under either
at your option.