gpt4 book ai didi

javascript - 如何在React Native中的YouTube视频末尾禁用相关视频

转载 作者:行者123 更新时间:2023-12-03 05:30:38 30 4
gpt4 key购买 nike

如何在react native的youtube视频末尾禁用相关视频?

下面是我的代码,但是它不起作用

  state = {
isPlaying: true,
related :false,
};
<YouTube
apiKey="XXXXX"
videoId="XXXXX"
play={this.state.isPlaying}
rel={this.state.related}/>

提前致谢

最佳答案

显然相关的视频无法禁用

您将继续从该YouTube channel 接收相关视频

google

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.



stackOver

关于javascript - 如何在React Native中的YouTube视频末尾禁用相关视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59338005/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com