Hi there, this port is great it just needs background audio when a iOs device is blocked or the screen turns off.
I saw the code at nstudio has been updated to run in this mode and seems to be an easy fix.
The six line change occurs in in ios/player.ts:
let audioSession = AVAudioSession.sharedInstance();
let output = audioSession.currentRoute.outputs.lastObject.portType;
let audioSession = AVAudioSession.sharedInstance();
audioSession.setCategoryWithOptionsError(
AVAudioSessionCategoryAmbient,
AVAudioSessionCategoryOptions.DuckOthers
);
let output = audioSession.currentRoute.outputs.lastObject.portType;
let audioSession = AVAudioSession.sharedInstance();
let output = audioSession.currentRoute.outputs.lastObject.portType;
TNS_Player_Log('output', output);
let audioSession = AVAudioSession.sharedInstance();
audioSession.setCategoryWithOptionsError(
AVAudioSessionCategoryAmbient,
AVAudioSessionCategoryOptions.DuckOthers
);
let output = audioSession.currentRoute.outputs.lastObject.portType;
TNS_Player_Log('output', output);