ios video playback - iOS avPlayer layer sets rounded corners
天蓬老师
天蓬老师 2017-06-07 09:24:56
0
1
1294

I use avplayer to play videos and want to set rounded corners for the video layer. I set the maskToBounds and cornerRadius of avplayerlayer. The layer is added to the imageView through the addSubLayer method. In addition, imageView displays album images and can complete rounded corners. Please tell me how to set it up? Thank you in advance


天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
学习ing

Instead of adding a sublayer, why not just set imageView.layer.cornerRadius?!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template