Skip to content

Commit 1d954ad

Browse files
committed
fix(VideoLoader): autoplay issue in safari on ios and osx
When controls attribute is not specified video autoplay is behaviour becomes flaky. After testing it appears that this maybe due to the poster property of the video element and how the property is being set. Setting the poster attribute rather than the property seems to resolve the issue
1 parent bc4bacf commit 1d954ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/video-loader/video-loader/video-loader.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*ngIf="video"
33
[src]="src"
44
[class]="videoClass"
5-
[poster]="poster"
5+
[attr.poster]="poster"
66
[autoplay]="autoplay"
77
[loop]="loop"
88
[muted]="muted"

0 commit comments

Comments
 (0)