---restore content starts---
1, Videotoolbox hardware decoding H264 stream process, if the app from the foreground press home key into the background, will immediately produce a 12903 error
If this time resets the decoder, continues decoding, will encounter a 12911 error, 12911 represents a data error
Kvtpropertynotsupportederr = -12900,kvtpropertyreadonlyerr = -12901,kvtparametererr = -12902, Kvtinvalidsessionerr = -12903,kvtallocationfailederr = -12904,kvtpixeltransfernotsupportederr = -12905,//c.f. -8961kvtcouldnotfindvideodecodererr = -12906,kvtcouldnotcreateinstanceerr =-12907, Kvtcouldnotfindvideoencodererr = -12908,kvtvideodecoderbaddataerr = -12909,//C.F.- 8969KVTVIDEODECODERUNSUPPORTEDDATAFORMATERR = -12910,//C.F. -8970kvtvideodecodermalfunctionerr = 12911 ,//C.F.-8960
When I continue to encounter the I-frame, subsequent decoding will be normal, it means that the decoder can work in the background
2, in the process of hard solution from the background switch to the foreground, the work status is not affected
Test environment: IPhone5S 10.2
IOS Video Tool Box background decoding failed