How to create a repeating video view for a macOS app with Xcode?

How to create a repeating video view for a macOS app with xcode? I now how to do it with an iOS app but not with a macOS app. Can anyone can help me to do that?

How to create a repeating video view for a macOS app with Xcode?
 
 
Q