Search code examples
iosobjective-cytplayerview

ios - How to hidden YTPlayerView Youtube logo


One day, the YouTube logo appears like a picture. Vanish together when disappears. Touch the image to reappear. If you touch the logo, there is a problem with YouTube. I want to hide the logo. We looked at the parameter at the youtube developer site. It is useless to apply a variable called modestbranding. I want to hide the logo.

It's my code

NSDictionary *dicPlayerVars = @{@"autohide":@1,
                                @"playsinline":@1,
                                @"showinfo":@0,
                                @"rel":@0,
                                @"color":@"white",
                                @"modestbranding":@1,};

[self.viewVideo loadWithVideoId:strVideoId playerVars:dicPlayerVars];

enter image description here


Solution

  • modestbranding

    This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar.

    You can add ?modestbranding=1 to your url. That will remove the logo.

    You can find other options on the Google Developers website.