carplay

Switch between CarPlay and regular window in iOS simulator

早过忘川 提交于 2019-12-21 23:34:03
问题 I am testing an app that has some CarPlay functionalities. I activated the CarPlay window in the simulator by changing the default options using defaults write com.apple.iphonesimulator CarPlay -bool YES which works perfectly when it comes to starting up the CarPlay windows, either when the simulator starts automatically after the application is compiled in debug or if I manually open up the CarPlay window through Hardware -> External Displays -> CarPlay when the app is already running in the

Handling playback events in CarPlay with MPNowPlayingInfoCenter

吃可爱长大的小学妹 提交于 2019-12-21 06:25:30
问题 I am trying to build a sample audio app with CarPlay integration. The app is a test project - no API, no streaming, no complicated UI. Just a short list of song titles with the functionality to select one and play it. My goal is to handle the callback when the play button is pressed on the Now Playing screen and play a file. I don't have any problems setting up the MPPlayableContentManager, MPPlayableContentDataSource and MPPlayableContentDelegate. My content is parsed from a JSON file and it

Handling playback events in CarPlay with MPNowPlayingInfoCenter

点点圈 提交于 2019-12-21 06:25:24
问题 I am trying to build a sample audio app with CarPlay integration. The app is a test project - no API, no streaming, no complicated UI. Just a short list of song titles with the functionality to select one and play it. My goal is to handle the callback when the play button is pressed on the Now Playing screen and play a file. I don't have any problems setting up the MPPlayableContentManager, MPPlayableContentDataSource and MPPlayableContentDelegate. My content is parsed from a JSON file and it

Adding a CarPlay UI

你说的曾经没有我的故事 提交于 2019-12-06 01:49:11
问题 I am working on my current iPhone audio app to be supported in CarPlay. I already got approved by Apple and received the development entitlement, and watched the video "Enabling Your App for CarPlay"(https://developer.apple.com/videos/play/wwdc2017/719/). In the video there is a piece of Swift code demonstrating how to add CarPlay UI: func updateCarWindow() { guard let screen = UIScreen.screens.first(where: { $0.traitCollection.userInterfaceIdiom == .carPlay }) else { // CarPlay is not

Adding a CarPlay UI

[亡魂溺海] 提交于 2019-12-04 05:21:22
I am working on my current iPhone audio app to be supported in CarPlay. I already got approved by Apple and received the development entitlement, and watched the video "Enabling Your App for CarPlay"( https://developer.apple.com/videos/play/wwdc2017/719/ ). In the video there is a piece of Swift code demonstrating how to add CarPlay UI: func updateCarWindow() { guard let screen = UIScreen.screens.first(where: { $0.traitCollection.userInterfaceIdiom == .carPlay }) else { // CarPlay is not connected self.carWindow = nil; return } // CarPlay is connected let carWindow = UIWindow(frame: screen

How to test an iOS application on the CarPlay simulator

元气小坏坏 提交于 2019-12-03 04:36:32
问题 I am trying to develop an iOS application compatible with CarPlay. According to this post Is iOS CarPlay API Public? How to Integrate CarPlay?, I have to be enrolled with Apple’s MFi program, but I have noticed that there’s the possibility to use a CarPlay simulator with Xcode: launch the Simulator, then Hardware -> External Displays -> CarPlay (I use Xcode 8). Once you have opened it, you see that the Message App is working in the CarPlay simulator so I imagine that there is the possibility

How to test an iOS application on the CarPlay simulator

狂风中的少年 提交于 2019-12-02 18:53:43
I am trying to develop an iOS application compatible with CarPlay. According to this post Is iOS CarPlay API Public? How to Integrate CarPlay? , I have to be enrolled with Apple’s MFi program, but I have noticed that there’s the possibility to use a CarPlay simulator with Xcode: launch the Simulator, then Hardware -> External Displays -> CarPlay (I use Xcode 8). Once you have opened it, you see that the Message App is working in the CarPlay simulator so I imagine that there is the possibility to try custom application in this simulator without being enrolled in the MFi program. I wonder if

苹果 Apple CarPlay开发备忘

橙三吉。 提交于 2019-11-28 11:05:43
1.建立iAP2通道 与Android Auto不同,Apple CarPlay需要通过苹果CP IC芯片鉴权,在iAP初期进行鉴权核对。否则无法继续通信。 IC芯片需要单独购买。 2.切换苹果手机iPhone到usb主机模式 发送0x51的usb命令让手机切换到主机模式,此后苹果手机会反过来枚举,声明我方设备为NCM设备,此时iPhone可以打开网卡模式,来进行网络通信。 3.准备开发环境 可以使用电脑安装ATS等软件来辅助调试。 4.移植CarPlay包 通过mdns发布CarPlay服务,之后会开始网络层的通信对话。 5.接入音视频 根据Android Auto接口带入音视频解码和录音接口,将Android Auto的音视频数据进行解码。 6.控制接口引出 定义UI级的封装,引出UI输入接口,音视频控制接口等。 来源: https://blog.csdn.net/yuangc/article/details/100055454

Is iOS CarPlay API Public? How to Integrate CarPlay?

不想你离开。 提交于 2019-11-27 06:52:43
Is the CarPlay API publicly available? Where can we find a programming guide or the reference to these classes if it is? Or will it integrate seamlessly with other APIs like Audio from AVFoundation ? Notes This question is broad and may be flagged as so but please do not as though there is almost no information on the subject and a lot of people could find it useful at this stage I live in Switzerland and want to go to Geneva to try out a demo app that I would write on a Ferrari lol. This question dates of early 2014. Let me update this with a mid 2016 answer: TL;DR - No, it is not publicly

Is iOS CarPlay API Public? How to Integrate CarPlay?

喜夏-厌秋 提交于 2019-11-26 12:11:01
问题 Is the CarPlay API publicly available? Where can we find a programming guide or the reference to these classes if it is? Or will it integrate seamlessly with other APIs like Audio from AVFoundation ? Notes This question is broad and may be flagged as so but please do not as though there is almost no information on the subject and a lot of people could find it useful at this stage I live in Switzerland and want to go to Geneva to try out a demo app that I would write on a Ferrari lol. 回答1: