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:
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:
Solved it by passing these parameters:
let playerVars = [
"modestbranding": 1,
"showinfo": 0
]
playerView.loadWithVideoId(video.id, playerVars: playerVars)
In iOS platform, just pass showinfo parameter to 0 before load the video:
NSDictionary *paramDic = @{
@"showinfo": @0
};
[self.playerView loadWithVideoId:@"M7lc1UVf-VE" playerVars:paramDic];