Skip to content

Commit 7d83cff

Browse files
committed
fix user agent string issues
1 parent ef45b50 commit 7d83cff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/YoutubeIframe.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ const YoutubeIframe = (
173173
allowsFullscreenVideo={!initialPlayerParams?.preventFullScreen}
174174
source={{html: MAIN_SCRIPT(videoId, playList, initialPlayerParams)}}
175175
userAgent={
176-
forceAndroidAutoplay && Platform.select({android: CUSTOM_USER_AGENT})
176+
forceAndroidAutoplay
177+
? Platform.select({android: CUSTOM_USER_AGENT, ios: ''})
178+
: ''
177179
}
178180
onShouldStartLoadWithRequest={request => {
179181
return request.mainDocumentURL === 'about:blank';

0 commit comments

Comments
 (0)