Skip to content

Sample application to demonstrate the usage of gift renderer in live broadcasting or short video. 直播礼物特效,体积小,素材小

Notifications You must be signed in to change notification settings

myvideoyun/TinyGiftRendererAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Build

TinyGiftRenderer

迷你礼物渲染库功能强大,全面兼容安卓IOS,使用简单;

功能

  1. 渲染贴纸挂件,如猫耳朵
  2. 渲染大型礼物素材

特点

  1. 素材体积小
  2. 渲染速度快
  3. 扩展灵活,支持新的挂件特效
  4. 使用简单
  5. 兼容性好
  6. 授权方式灵活

礼物大小对比

Gifts Components vwa Size(KB) PSNR Png Size(KB)
春天的蘑菇 蜜蜂 28 60.73 39
春天的蘑菇 蘑菇 36 48.64 1,446
春天的蘑菇 草地 142 45.151 986
花草 top 66 55.818 622
花草 bottom 121 53.93 760
花草 backgroud 85 55.721 398
雨伞 san 226 45.683 1,144
小红花 小红花 501 45.09 2,250
桃树 桃树 50 45.003 737
桃树 花瓣 39 55.141 684
仲夏之夜 仲夏夜 854 44.95 2,869

商务合作

联系人:范经理
邮箱:marketing@myvideoyun.com
电话:+8613818445512

使用方式

Android Java

  1. 认证鉴权
// 初始化License
MVYLicenseManager.initLicense(getApplicationContext(), "jAwdRWLiAhQN3lJ2zfJv7aT4TxkdoEFIZ5B2TLf6AikLkNTMfJ97cLlgVKXNxZiB", 48);
  1. 创建TinyGiftRenderer
effectHandler = new MVYAnimHandler(AnimationActivity.this);
effectHandler.setRotateMode(MVYGPUImageConstants.AYGPUImageRotationMode.kAYGPUImageFlipVertical);
  1. 设置资源路径
effectHandler.setAssetPath(getExternalCacheDir() + "/myvideoyun/gifts/LoveRoss/meta.json");
  1. 渲染
effectHandler.processWithTexture(inputImageFramebuffer.texture[0], width, height);

具体可参考AnimationActivity.java和CameraActivity.java.

About

Sample application to demonstrate the usage of gift renderer in live broadcasting or short video. 直播礼物特效,体积小,素材小

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages