@taole/giftstage 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -268,6 +268,11 @@ Promise<GiftHandle>;
268
268
  - 播放结束后,是否自动移除礼物
269
269
  - 默认 `true`,传 `false` 时会停留最后一帧,方便后续继续调用 `gift.animate(...).start()`
270
270
  - `mute?: boolean`
271
+ - `VAP / AlphaVideo` 传 `false` 时使用 `HTMLVideoElement` 播放声音;该礼物不会进入仅解码视频帧的 WebCodecs 路径
272
+ - 如果浏览器阻止有声自动播放,会自动回退静音播放,保证画面正常完成
273
+ - `onFrame?: (frame, gift) => void`
274
+ - 仅用于 SVGA;画面帧推进时触发
275
+ - 性能不足时可能跨帧,业务应使用 `frame >= target` 的阈值判断
271
276
  - `onComplete?: (gift) => void`
272
277
 
273
278
  图片专用参数: