[BUG] Video Pauses Every Time You Try to Play It on IOS (CapacitorCookies + Datadog Integration Issue)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- html, ios, javascript
- 领域
- mobile-dev, web-dev
调研方向
首先,在 iOS 设备或模拟器上,使用报告中所示的 Datadog RUM 初始化方式、在 capacitor.config.json 中启用的 CapacitorCookies,以及提供的 video element,复现该问题。将自动跟踪与文档中记录的临时解决方法进行比较;当启用 cookies 和自动跟踪后视频播放仍保持不中断时,即可认为该 issue 已完成。
由索引模型根据 Issue 内容生成。
描述
Description:
When using Datadog's automatic tracking with CapacitorCookies: { enabled: true } in a Capacitor app on iOS, video playback for video tags is interrupted or fails to function properly. This issue affects all video elements and any libraries that use them under the hood.
Through testing, it was identified that Datadog’s automatic tracking of user interactions (e.g., route changes, button clicks) conflicts with video playback on iOS. Disabling CapacitorCookies or setting trackViewsManually in Datadog can resolve the issue temporarily, but the underlying cause seems related to how Capacitor handles cookies in combination with Datadog’s tracking.
Environment:
IOS device/emulator 17.5 ( any version bug is reproducable )
Plugin
CapacitorCookies with capacitor 6.0.0( any version bug is reproducable )
Step to reproduce
1)Initialize a Capacitor iOS app with the following configuration:
datadogRum.init({
trackViewsManually: false,
...
});
2)Enable CapacitorCookies in capacitor.config.json:
{
"CapacitorCookies": {
"enabled": true
}
}
3)Add a video tag to any component or page:
<video controls width="300">
<source src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4" />
Sorry, your browser doesn't support embedded videos.
</video>
4)Run the app on an iOS device/emulator and attempt to play the video.
Expected Behavior:
The video should play without any interruptions or issues.
https://github.com/user-attachments/assets/35e85295-2ec7-4676-96f2-7cc4e3b24d48
Actual Behavior:
The video fails to play or stops unexpectedly.
https://github.com/user-attachments/assets/1300d3d9-e8d8-4e0d-907f-5cc2b7d66398
Minimal reproducible example (please use your own Datadog credentials)
- 主要语言
- Java
- 星标
- 688
- 派生
- 692
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/capacitor-plugins 的其他 Issue
-
triage
难度 2/5 1-3 小时 新手友好度 72/100
ionic-team/capacitor-plugins#2616 ·
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguage未关闭triage
难度 1/5 1 小时以内 新手友好度 88/100
ionic-team/capacitor-plugins#2604 ·
-
bug(network): Android networkStatusChange re-queries the active network inside callbacks and fires on every capability change可能已有人在做 @kcjonson 于 8 天前认领。 未关闭platform: android
难度 4/5 1-2 天 新手友好度 25/100
ionic-team/capacitor-plugins#2621 ·
-
bug(network): iOS getStatus() returns the last reachability callback value instead of reading current flags可能已有人在做 @kcjonson 于 8 天前认领。 未关闭platform: ios
难度 2/5 1-3 小时 新手友好度 35/100
ionic-team/capacitor-plugins#2620 ·
-
platform: android platform: ios
难度 5/5 一周以上 新手友好度 24/100
ionic-team/capacitor-plugins#2619 ·
查看 ionic-team/capacitor-plugins 的全部 Issue
相似的 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 90/100
authorjapps/zerocode#808 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
quarkusio/quarkus-agent-mcp#302 ·
维护者通常 2 天内回复
-
build
难度 1/5 1 小时以内 新手友好度 85/100
MetricsHub/metricshub-community#1472 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复