Photos framework: Connection to assetsd was interrupted or assetsd died

前端 未结 3 1333
长情又很酷
长情又很酷 2021-02-15 16:48

I am getting this error when I am trying to play multiple videos using this swift library (https://github.com/piemonte/player). Not sure if it\'s related to that player, or to t

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-15 17:55

    Your problem might be that you create a new Player-object everytime you start playing a video:

     self.currentlyPlaying = Player()
    

    I would recommend you to either remove it after the file has finished playing or to create one player which you will reuse. Otherwise it will stay in the memory.v

提交回复
热议问题