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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -