Comments (6)
两个vap用一个canvas,然后options使用给不同的type就好了。
这个能不能把web端的文档稍微补全一下下呢,谢谢了
叩谢
from vap.
我晚点研究下
from vap.
前端使用type实现了实例缓存,对于一处动画,播放完之后播放第二次可以不需要初始化工作,也会复用canvas和glContext等等;所以想创建可以同时播放的动画需要传入不同的type值,如1、2、3、4等等,已更新文档,有问题欢迎咨询~
from vap.
web vap要是能支持OffscreenCanvas就好了, 我这里是有多个vap实例同时播放的情况
from vap.
我们最终画面是呈现在canvas元素上的,多个vap实例同时播放可以使用不同的type创建不同的canvas,应该不会有问题吧,这里OffscreenCanvas的作用没看出来,可以参考DEMO
from vap.
想使用OffscreenCanvas是想用web worker分担压力,不卡顿
from vap.
Related Issues (20)
- fetchText invoke 文本显示问题 HOT 2
- Android如何切换丝滑切换播放源
- startPlay方法支持config配置单独加载 HOT 1
- 什么时候出 flutter 版本
- 有mac版播放器吗?
- iOS stopHWDMP4野指针问题
- iOS17 -[QGMP4FrameHWDecoder _decodeFrame:drop:] 崩溃 HOT 4
- iOS端展示效果有色差,并且动效的范围明显有缩小
- vapx tool 生成失败
- iOS 动画播放完或者stop后12秒左右才会释放掉内存,不会直接释放
- web端融合参数设置不生效 HOT 1
- Android 端,播放的过程中mute(), 静音不能实时生效 HOT 1
- IOS播放没有声音
- iOS13系统版本上,替换资源失败。
- 播放礼物有些礼物必崩
- Vap动画在使用融合动效的时候不能自定义大小 HOT 1
- vap
- macvap
- 使用vap tool 输出后视频有卡顿 HOT 1
- 崩溃QGMP4FrameHWDecoder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vap.