From 45b1445dbc3b069b806b20b1fe46c75f33f416aa Mon Sep 17 00:00:00 2001 From: Sokiwar Date: Thu, 14 Mar 2024 10:26:22 +0900 Subject: [PATCH] =?UTF-8?q?IgnoreLatestPlayer=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=8B=9C=EC=97=90=20playServiceId=20=EA=B0=92=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=88=20(#1145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - IgnoreLatestPlayer 설정 시에 playServiceId 값 조절 - ignore를 했으나 값이 있는 경우에는 player의 playServiceId 전송하도록 적용 --- .../CapabilityAgents/AudioPlayer/AudioPlayerAgent.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuguAgents/Sources/CapabilityAgents/AudioPlayer/AudioPlayerAgent.swift b/NuguAgents/Sources/CapabilityAgents/AudioPlayer/AudioPlayerAgent.swift index 6aae4ff4..ea241aed 100644 --- a/NuguAgents/Sources/CapabilityAgents/AudioPlayer/AudioPlayerAgent.swift +++ b/NuguAgents/Sources/CapabilityAgents/AudioPlayer/AudioPlayerAgent.swift @@ -884,7 +884,7 @@ private extension AudioPlayerAgent { if ignoreLatestPlayer == true { return PlaylistEvent( typeInfo: typeInfo, - playServiceId: nil + playServiceId: latestPlayer?.payload.playServiceId ) } else { guard let player = self.latestPlayer else { @@ -893,7 +893,7 @@ private extension AudioPlayerAgent { return PlaylistEvent( typeInfo: typeInfo, - playServiceId: latestPlayer?.payload.playServiceId + playServiceId: player.payload.playServiceId ) } }