如何在 react native 中禁用 youtube 视频末尾的相关视频
How to disable related videos at the end of the youtube video in react native
如何在 react native 中禁用 youtube 视频末尾的相关视频..??
下面是我的代码,但它不起作用
state = {
isPlaying: true,
related :false,
};
<YouTube
apiKey="XXXXX"
videoId="XXXXX"
play={this.state.isPlaying}
rel={this.state.related}/>
提前致谢
显然相关的视频不能被禁用
您将继续收到来自该 YouTube 频道的相关视频
The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.
如何在 react native 中禁用 youtube 视频末尾的相关视频..??
下面是我的代码,但它不起作用
state = {
isPlaying: true,
related :false,
};
<YouTube
apiKey="XXXXX"
videoId="XXXXX"
play={this.state.isPlaying}
rel={this.state.related}/>
提前致谢
显然相关的视频不能被禁用
您将继续收到来自该 YouTube 频道的相关视频
The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.