LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
610 stars 155 forks source link

initialPlayerParams not working [rel] [modestbranding] #131

Closed aman-technyx closed 3 years ago

aman-technyx commented 3 years ago

HELP ME OUT

on react native project initialPlayerParams is not working properly, i cant be able to disable related videos and also youtube logo is also coming my code is this:

<YoutubePlayer ref={videoRef} webViewStyle={[styles.video]} // initialPlayerParams={{rel: 0 , modestbranding: 1, iv_load_policy : 0 ,controls: 0, showClosedCaptions: false}} initialPlayerParams={{ rel: false, loop: true, controls: false, modestbranding: false }} height={300} play={state.play} videoId={"iee2TATGMyI"} contentScale={0} /> If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

LonelyCpp commented 3 years ago

i cant be able to disable related videos

Disabling related videos is not possible (it used to be supported, but youtube has removed this feature).

If the rel parameter is set to 0, related videos will come from the same channel as the video that was just played.


youtube logo is also coming

The logo is only removed from the player "control bar". Can you add a screenshot for reference?