guowilling / SRVideoPlayer

Custom interface video player which has various interactive gestures.
MIT License
106 stars 31 forks source link

Use SRVideoPlayer in collectionView's cell #8

Open Travloper opened 5 years ago

Travloper commented 5 years ago

It gives me following error -

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <SRVideoPlayerLayerView: 0x7fa64dc59640; frame = (0 0; 0 0); layer = <AVPlayerLayer: 0x600001fe7280>>: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs.'

What i Did -

HOW CAN I USE IT??