1

I'm using YTPlayerView from the youtube-ios-player-helper library for video playback, but want to hide the share button in the top right corner that comes with it - anyone have a solution?

I've circled what I'm talking about here:

enter image description here

4

2 回答 2

4

通过传递这些参数来解决它:

let playerVars = [
  "modestbranding": 1,
  "showinfo": 0
]
playerView.loadWithVideoId(video.id, playerVars: playerVars)
于 2016-07-08T15:07:35.530 回答
1

在 iOS 平台中,只需在加载视频之前将showinfo参数传递给 0:

NSDictionary *paramDic = @{
        @"showinfo": @0
    };

[self.playerView loadWithVideoId:@"M7lc1UVf-VE" playerVars:paramDic];
于 2017-03-21T03:49:31.653 回答