Major improvements to UnifiedPlayer: 1. GetFrameImage() now works when paused for responsive UI updates 2. Play() method properly starts FFmpeg process 3. Frame display loop runs continuously for smooth video display 4. Disabled audio temporarily to fix video playback fundamentals 5. Simplified FFmpeg command to focus on video stream only Player now: - Generates video frames correctly - Shows video when paused - Has responsive progress tracking - Starts playback properly Next steps: Re-enable audio playback once video is stable |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| definitions.go | ||
| draw.go | ||
| icon_cursor.go | ||
| LICENSE | ||
| path_cursor.go | ||
| path_style.go | ||
| public.go | ||
| README.md | ||
| svg_icon.go | ||
| svg_path.go | ||
| utils.go | ||
oksvg
Oksvg is a rasterizer for a partial implementation of the SVG2.0 specification in Go.
Although many SVG elements will not be read by oksvg, it is good enough to faithfully produce thousands, but certainly not all, SVG icons available both for free and commercially. A list of valid and invalid elements is in the doc folder.
The package can be installed by running:
go get github.com/fyne-io/oksvg@latest
Oksvg uses the rasterx rasterizer package which implements full SVG2.0 path functions, including the newer 'arc' join-mode.
Extra non-standard features
In addition to 'arc' as a valid join mode value, oksvg also allows 'arc-clip' which is the arc analog of miter-clip and some extra capping and gap values. It can also specify different capping functions for line starts and ends.
Rasterizations of SVG to PNG from creative commons 3.0 sources
Example renderings of unedited open source SVG files by oksvg and rasterx are shown below.
Thanks to Freepik from Flaticon Licensed by Creative Commons 3.0 for the example icons shown below, and also used as test icons in the testdata folder.




