Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] Video Pauses Every Time You Try to Play It on IOS (CapacitorCookies + Datadog Integration Issue)

未关闭
#2,190 10 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
html, ios, javascript

调研方向

首先,在 iOS 设备或模拟器上,使用报告中所示的 Datadog RUM 初始化方式、在 capacitor.config.json 中启用的 CapacitorCookies,以及提供的 video element,复现该问题。将自动跟踪与文档中记录的临时解决方法进行比较;当启用 cookies 和自动跟踪后视频播放仍保持不中断时,即可认为该 issue 已完成。

由索引模型根据 Issue 内容生成。

描述

needs reproduction platform: ios

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)

https://github.com/bulletbrand/safe-area-demo-repo

主要语言
Java
星标
688
派生
692
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/capacitor-plugins 的其他 Issue

查看 ionic-team/capacitor-plugins 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。