-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
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:
- Create a new Angular project and install
@angular/youtube-player. - Wrap the app into a Capacitor iOS project (e.g., using
ionic buildandnpx cap add ios). - In an Angular component template, add
<youtube-player [videoId]="'VIDEO_ID'"></youtube-player>with a valid video ID. - Run the app on an iOS device using
ionic capacitor run ios. - 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