Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lancercomet/svgaplayer-uwp
Svga port for Windows UWP.
https://github.com/lancercomet/svgaplayer-uwp
svga svgaplayer uwp windows
Last synced: about 2 months ago
JSON representation
Svga port for Windows UWP.
- Host: GitHub
- URL: https://github.com/lancercomet/svgaplayer-uwp
- Owner: LancerComet
- License: apache-2.0
- Created: 2019-02-11T14:03:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T13:06:21.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T02:44:21.752Z (2 months ago)
- Topics: svga, svgaplayer, uwp, windows
- Language: C#
- Size: 989 KB
- Stars: 34
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SVGAPlayer For UWP
This is the UWP version for SVGA.
![img](https://raw.githubusercontent.com/LancerComet/SVGAPlayer-UWP/master/Static/Screenshot.gif)
## Quickstart
Please check both `MainPage.xaml` and `MainPage.xaml.cs` to see the demo.
## API
```c#
class SvgaPlayer {
///
/// 播放循环次数, 默认为 0.
/// 当为 0 时代表无限循环播放.
///
public int LoopCount { get; set; }///
/// 目标播放帧率.
/// 若不设置或设置为 0 时使用默认帧率, 设置后将使用自定义帧率.
///
public int Fps { get; set; }///
/// 当前是否处于播放状态.
///
public bool IsInPlay { get; }///
/// 载入 SVGA 文件数据.
///
/// SVGA 文件二进制 Stream.
public void LoadSvgaFileData (Stream svgaFileBuffer) {}///
/// 初始化 Player 舞台.
/// 任何配置项请在调用此方法前执行.
///
public void InitStage () {}///
/// 开始播放.
///
public void Play () {}///
/// 暂停.
///
public void Pause () {}
///
/// 卸载舞台所有数据.
///
public void UnloadStage () {}
}
```## SVGA File Struct
More Information about SVGA File: [Link](https://github.com/yyued/SVGA-Format)
![img](https://raw.githubusercontent.com/LancerComet/SVGAPlayer-UWP/master/Svga/SVGA%20File%20Sturct.png)