mercredi 4 mars 2015

Youtube YTHelper view video playback starting automatically after pause

Using YTHelper view to play youtube video, one issue we are facing is if we pause video it still starts playing again and when video is playing in full screen, when user clicks on done button, it stops playing and after few seconds it starts playing automatically in full screen.



NSDictionary *playerVars = @{

@"playsinline" : @0,
@"autoplay" : @0,
@"showinfo" : @0,
@"autohide" : @0,
@"rel" : @0,
@"modestbranding" : @1
};

self.playerView.delegate = self;
[self.playerView loadWithVideoId:@"M7lc1UVf-VE" playerVars:playerVars];


Sample code attached for reference.




Aucun commentaire:

Enregistrer un commentaire