File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-video-provider" ,
3- "version" : " 0.3.3 " ,
3+ "version" : " 0.3.4 " ,
44 "description" : " Singleton-engine video library for React Native (one native player, many surfaces)" ,
55 "main" : " ./lib/module/index.js" ,
66 "types" : " ./lib/typescript/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -178,7 +178,14 @@ export function YouTubeView({
178178 iv_load_policy : 3 ,
179179 start : startRef . current ,
180180 } }
181- webViewProps = { { androidLayerType : 'hardware' } }
181+ // Real https referrer/origin — avoids embed rejections (e.g. 153)
182+ // on referrer-restricted videos.
183+ baseUrlOverride = "https://www.youtube.com"
184+ webViewProps = { {
185+ androidLayerType : 'hardware' ,
186+ allowsInlineMediaPlayback : true ,
187+ mediaPlaybackRequiresUserAction : false ,
188+ } }
182189 onReady = { onReady }
183190 onChangeState = { onChangeState }
184191 onError = { onError }
You can’t perform that action at this time.
0 commit comments