Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)