You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the pixelBuffer in SDLCarWindow is invalidated when the app is put in the background due to a VideoToolbox bug. This means that the CarWindow API can not encode the video frames and thus no video frames are sent to the head unit.
This is sometimes fixed by putting the app on the device in the background and then bringing it back to the foreground. When the app is brought back to the foreground the videoEncoder is destroyed and recreated in the SDLStreamingVideoLifecycleManager. I believe this is what fixes the issue. We should try to reset the videoEncoder when the the pixelBuffer is nil.
However if the bug persists after a few seconds then we should stop video streaming and let the developer know that video could not stream because of an error.
Reproduction Steps
Connect navigation app using the CarWindow API to a SYNC 3 head unit. Open the SDL app.
Turn off the ignition and close the doors. When screen goes dark, turn off the head unit by toggling the on/off switch on the back of the head unit. (Don't just switch off the TDK because then the library will sometimes not get a accessory disconnected notification)
Lock the iPhone (This is what causes the VideoToolbox bug).
Turn the TDK back on again and turn on the ignition.
Unlock the iPhone
If necessary, select the SDL app on the HMI.
Expected Behavior
The video streams to the head unit.
Observed Behavior
The CarWindow class does not stream video some of the time due to video encoding failing. This could happen the first time or tenth time the app is backgrounded.
OS & Version Information
iOS Version: 13.0
SDL iOS Version: 6.5
Testing Against: SYNC 3.0
The text was updated successfully, but these errors were encountered:
@E-SAITO-TMC It will not be added in the release next week, and we have not begun planning for future releases. We will consider it for the July release.
Bug Report
Sometimes the
pixelBuffer
inSDLCarWindow
is invalidated when the app is put in the background due to a VideoToolbox bug. This means that theCarWindow
API can not encode the video frames and thus no video frames are sent to the head unit.videoEncoder
is destroyed and recreated in theSDLStreamingVideoLifecycleManager
. I believe this is what fixes the issue. We should try to reset thevideoEncoder
when the thepixelBuffer
isnil
.Reproduction Steps
Expected Behavior
The video streams to the head unit.
Observed Behavior
The
CarWindow
class does not stream video some of the time due to video encoding failing. This could happen the first time or tenth time the app is backgrounded.OS & Version Information
The text was updated successfully, but these errors were encountered: