avkit - Why does AVPlayerView not have a member named "player" in Swift -


i trying use avplayerview in swift, compiler complaints cannot find member named player in avplayerview.

error saying avplayerview not have member named "player"

but avplayerview have property called player.

avplayerview class definition shows has property named "player"

and other properties or methods fine. seems player not recognized.

you explicitly have import avfoundation framework (which defines avplayer class):

import avkit import avfoundation  let playerview = avplayerview() let player = playerview.player 

that might considered bug in (swift view of the) avkit framework.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -