@neoskola/auto-play 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -181,6 +181,12 @@ class HybridAutoPlay: HybridAutoPlaySpec {
|
|
|
181
181
|
carPlayTemplate,
|
|
182
182
|
animated: animated
|
|
183
183
|
)
|
|
184
|
+
} else if carPlayTemplate is CPNowPlayingTemplate {
|
|
185
|
+
// CPNowPlayingTemplate is a system singleton — do NOT push it.
|
|
186
|
+
// It configures MPNowPlayingInfoCenter and MPRemoteCommandCenter in init,
|
|
187
|
+
// which makes CarPlay show the NowPlaying bar automatically when audio plays.
|
|
188
|
+
print("[AutoPlay] CPNowPlayingTemplate configured (not pushed — managed by system)")
|
|
189
|
+
return
|
|
184
190
|
} else {
|
|
185
191
|
let _ = try await interfaceController.pushTemplate(
|
|
186
192
|
carPlayTemplate,
|