I also ran into the same problem without getting the right solution. I did the trick using Masking.
CALayer *aLayer = [CALayer layer]; aLayer.backgroundColor = [UIColor blackColor].CGColor; aLayer.frame = CGRectMake(origin.x, origin.y, widthOfVideo, heightOfVideo); objWebView.layer.mask = aLayer;
And it worked for me. Hope this helps you.
source share