I was trying to use AVPlayerView
in Swift, but the compiler complaints that it cannot find a member named player
in AVPlayerView
.
But AVPlayerView
clearly does have a property called player
.
And other properties or methods are fine. It seems that only player
is not recognized.