audio_session icon indicating copy to clipboard operation
audio_session copied to clipboard

devicesChangedEventStream on IOS ,not work!

Open brotherdang opened this issue 1 year ago • 2 comments

AudioSession.instance.then((session) { session.setActive(true); subscription4DeviceRemoved = session.devicesChangedEventStream.listen((event) async { if (ref.read(seriesProvider(seriesID))?.model?.viewEpisode != episode?.index || episode?.unlock == false) return;

    var devices = await session.getDevices();
    LogUtils.printLog("eventStream 11", "devices.length = ${devices.length}");
    context.showToast("音频设备个数${devices.length}");

brotherdang avatar Sep 23 '24 03:09 brotherdang

when I plug in or remove earphone, I can not get weather it is plug in-or-remove.

brotherdang avatar Sep 23 '24 03:09 brotherdang

Same problem

xd-jeff avatar Sep 09 '25 03:09 xd-jeff