Skip to content

Video player configuration error 153 on iOS for @angular/youtube-player #32244

@sidsaxena0

Description

@sidsaxena0

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Description
When using the @angular/youtube-player component to embed YouTube videos in an Angular application, iOS devices display a “Video player configuration error 153” and the video fails to play. Desktop and Android devices do not experience this issue. Similar symptoms have been reported by other projects ([github.com](toeverything/AFFiNE#13848)).

Steps to reproduce

  • Create a new Angular project and install @angular/youtube-player.
  • Add <youtube-player [videoId]="'VIDEO_ID'"></youtube-player> to a component template.
  • Serve the application and access the page on an iOS device via Safari.
  • Observe the video player.

Expected behavior
The YouTube video should load and play correctly on iOS, just as it does on desktop and Android platforms.

Actual behavior
On iOS devices, the video area displays “Video player configuration error 153” and does not play the video.

Environment

  • Angular version: 19.2.14
  • @angular/youtube-player version: 19.2.18
  • Ionic Framework (@ionic/angular) version: 8.6.0
  • Browser: Safari on iOS (multiple versions)

Additional context
The issue persists even when using the youtube-nocookie.com domain for the embed. Reproduced across multiple iOS devices and networks.

Reproduction

N/A – this bug occurs only in a Capacitor mobile app on iOS and cannot be reproduced via an online StackBlitz because it depends on the native iOS player. To reproduce, follow these steps in a Capacitor project:

  1. Create a new Angular project and install @angular/youtube-player.
  2. Wrap the app into a Capacitor iOS project (e.g., using ionic build and npx cap add ios).
  3. In an Angular component template, add <youtube-player [videoId]="'VIDEO_ID'"></youtube-player> with a valid video ID.
  4. Run the app on an iOS device using ionic capacitor run ios.
  5. The embedded player fails to load and shows “Video player configuration error 153”.

Expected Behavior

The embedded YouTube player should load and play the specified video normally on iOS just like it does on desktop and Android. Users should not see a “Video player configuration error 153”.

Actual Behavior

On iOS devices using an Ionic/Capacitor mobile application, the embedded YouTube video fails to play and instead shows an error message: "Video player configuration error 153". The issue does not occur on desktop or Android devices.

Environment

  • Angular: 19.2.14
  • CDK/Material: 19.2.18
  • Browser(s): Safari on iOS (multiple versions)
  • Operating System (e.g. Windows, macOS, Ubuntu): iOS 15/16

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions