ios - AV Player observer in Swift - message was received but not handled -
i'm trying implement observer av player in pure swift. i'm getting error: message received not handled. because object argument in constructor of observer i'm using nil? i've placed example code below. thanks player.addobserver(self, forkeypath: "status", options:nskeyvalueobservingoptions(), context: nil) player.addobserver(self, forkeypath: "playbackbufferempty", options:nskeyvalueobservingoptions(), context: nil) player.addobserver(self, forkeypath: "playbacklikelytokeepup", options:nskeyvalueobservingoptions(), context: nil) player.addobserver(self, forkeypath: "loadedtimeranges", options: nskeyvalueobservingoptions(), context: nil) private func deallocobservers(player: avplayer) { player.removeobserver(self, forkeypath: "status") player.removeobserver(self, forkeypath: "playbackbufferempty") player.removeobserver(self, forkeypath: "playbacklikelytokeepup"...