Set up YouTube player in iOS

I have an application that broadcasts YouTube videos using YTPlayerView on Youtube. I want to start setting it up (control / rotation) After several days of searching the Internet, I could not find the answer to this question.

All I could find was using JS / Ruby / HTML to change the player. Does anyone know a way to do this?

+4
source share
1 answer

Player controls can be specified in the dictionary described below and can have a value of 0,1,2 to check this link for the control functions https://developers.google.com/youtube/player_parameters#controls

NSDictionary *playerVars = @{
  @"controls" : @0,
  @"playsinline" : @1,
  @"autohide" : @1,
  @"showinfo" : @0,
  @"modestbranding" : @1
};
[self.playerView loadWithVideoId:videoId playerVars:playerVars];
+5
source

All Articles