Skip to content

LancerComet/SVGAPlayer-UWP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVGAPlayer For UWP

This is the UWP version for SVGA.

img

Quickstart

Please check both MainPage.xaml and MainPage.xaml.cs to see the demo.

API

class SvgaPlayer {
  /// <summary>
  /// 播放循环次数, 默认为 0.
  /// 当为 0 时代表无限循环播放.
  /// </summary>
  public int LoopCount { get; set; }

  /// <summary>
  /// 目标播放帧率.
  /// 若不设置或设置为 0 时使用默认帧率, 设置后将使用自定义帧率.
  /// </summary>
  public int Fps { get; set; }

  /// <summary>
  /// 当前是否处于播放状态.
  /// </summary>
  public bool IsInPlay { get; }

  /// <summary>
  /// 载入 SVGA 文件数据.
  /// </summary>
  /// <param name="svgaFileBuffer">SVGA 文件二进制 Stream.</param>
  public void LoadSvgaFileData (Stream svgaFileBuffer) {}

  /// <summary>
  /// 初始化 Player 舞台.
  /// 任何配置项请在调用此方法前执行.
  /// </summary>
  public void InitStage () {} 

  /// <summary>
  /// 开始播放.
  /// </summary>
  public void Play () {}

  /// <summary>
  /// 暂停.
  /// </summary>
  public void Pause () {}
  
  /// <summary>
  /// 卸载舞台所有数据.
  /// </summary>
  public void UnloadStage () {}
}

SVGA File Struct

More Information about SVGA File: Link

img

Releases

No releases published

Packages

No packages published

Languages