Git Product home page Git Product logo

svgaplayer-uwp's Introduction

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

svgaplayer-uwp's People

Contributors

lancercomet avatar maxlee avatar ponycui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.