如何在 WebView 中使用 YouTuBe 视频获取 onClick 触发器?

时间:2021-06-03 05:50:20

标签: react-native react-native-webview

const link = 'https://www.youtube.com/embed/FYokhMma9ls';

return (
  <WebView
   originWhitelist={['*']}
   style={{height: 210, width: 210}}
   source={{uri: link}}
  />
);

如果我用<WebView />来播放YouTuBe视频,有什么办法可以设置道具知道YouTuBe视频播放按钮被触发了吗?

0 个答案:

没有答案
相关问题