react-native-youtube-iframe icon indicating copy to clipboard operation
react-native-youtube-iframe copied to clipboard

initialPlayerParams not working modestbranding

Open code4muktesh opened this issue 3 years ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS + version: [e.g. iOS 13.5 | Android 10]
  • react-native-youtube-iframe version
  • react-native-webview version
  • Expo verison [if using expo]

Additional context Add any other context about the problem here.

code4muktesh avatar Feb 24 '22 17:02 code4muktesh

can you please actually fill in the above comment on what the problem is?

LonelyCpp avatar Feb 24 '22 17:02 LonelyCpp

npmPackages: expo: ^44.0.6 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 Expo Workflow: bare

"react-native-webview": "11.15.0", "react-native-youtube-iframe": "^2.2.2",

code4muktesh avatar Feb 25 '22 07:02 code4muktesh

What is not working?

Can you clarify what your expectation is and what you're getting?

LonelyCpp avatar Feb 25 '22 07:02 LonelyCpp

Setting modestbranding flag 1 but youtube logo is still visible in video toolbar....this flag is not working. youtube logo is always visible whether set 0 or 1.

code4muktesh avatar Feb 25 '22 10:02 code4muktesh

The modestbranding param seems to be working just fine for me (both iOS and Android). I did notice that when you change it, you'll need to re-mount the videoplayer. Probably caused by the use of useMemo on this line: https://github.com/LonelyCpp/react-native-youtube-iframe/blob/f3d115e2c5d235dc9b4aee61c6ee74b177c23336/src/YoutubeIframe.js#L227

IjzerenHein avatar Apr 19 '22 13:04 IjzerenHein

According to the YouTube development revision history, the modestbranding parameter has been deprecated and "will have no effect." Details here: YouTube modestbranding.

rvc2 avatar Aug 23 '23 20:08 rvc2

looks like modestbranding has been deprecated by youtube. this parameter has no effect since August 15, 2023

https://developers.google.com/youtube/player_parameters#modestbranding

I'll add a deprecated notice in a future release

LonelyCpp avatar Aug 28 '23 04:08 LonelyCpp