Tencent / Tencent/libpag

[Android web] The play() request was interrupted because video-only background media was paused to save power.

Open
#2,895 1 comment 0 reactions 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since Jun 24, 2025.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

使用 web lite 版本的 sdk 在移动端 h5 页面播放 pag 动画,发现安卓 9 - 15 版本都有如下报错:

The play() request was interrupted because video-only background media was paused to save power.

可能的原因:

https://developer.chrome.com/blog/play-request-was-interrupted?hl=zh-cn

可能的修复方案:

在 pag view 的控制器中,针对播放和暂停进行处理:

Image

【版本信息】

0.0.7

【平台信息】

Web 浏览器

【预期的表现】

【实际的情况】

【Demo及附件】

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.