Full Screen Video with AVPlayer


Initializer for conditional binding must have Optional type, not ‘[AVCaptureDevice]’

if a binding over if let is, for example so;

come this error message, because It is not an optional. My solution for this code, checking value changing. Like this;

How To Detect AVPlayer Status

Detect when AVPlayer is playing