Play two sounds simultaneously using AVPLayer iOS -
i'm using 2 instances of avplayer.
first player audio working fine moment second audio starts there small fraction of time in first audio stops.
for first player have made singleton class. second player.
avasset *asset = [avasset assetwithurl:url]; avplayeritem *playeritem = [avplayeritem playeritemwithasset:asset] //avplayeritem *playeritem=[avplayeritem playeritemwithurl:url]; [self.player replacecurrentitemwithplayeritem:playeritem] [self.player play];
Comments
Post a Comment