-
Notifications
You must be signed in to change notification settings - Fork 103
Background Mode Audio #160
Copy link
Copy link
Open
Description
Hello,
Background mode audio, even after setting a category is not working for me for either iOS or Android.
const playerOptions = {
audioFile: '~/audio/'+info.audio+".png",
loop: true,
autoplay: true
};
player
.initFromFile(playerOptions)
.then( function() {
if(player.ios){
const audioSession = AVAudioSession.sharedInstance();
audioSession.setCategoryError( AVAudioSessionCategoryPlayback );
player.play();
}
})
.catch(function(err) {
console.log('something went wrong...', err);
});
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
</array>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels