VLCKit playback is unresponsive after background on iPad in latest commit
Hello. I've updated vlckit from last repo, and when i am running it on iPad Air(iOs 9.2.0) and locking screen, after unlocking device, when i run vlcPlayer.play()
it is not playing. When app enters background I use willResignActive, to set vlcPlayer.stop()
In simulator it works fine, on iPhone 6 it works fine, but in iPad - no.
Logs from iphone:
2018-03-07 16:12:49.034891+0200 Test[2269:1068290] Buffering 92% buffering 2018-03-07 16:12:49.047629+0200 Test[2269:1068290] Buffering 96% buffering 2018-03-07 16:12:49.050745+0200 Test[2269:1068290] Buffering 100% buffering 2018-03-07 16:12:49.069610+0200 Test[2269:1068036] using text renderer module "freetype" 2018-03-07 16:12:49.072769+0200 Test[2269:1068036] Received first picture 2018-03-07 16:12:49.075018+0200 Test[2269:1068290] Stream buffering done (3120 ms in 316 ms) 2018-03-07 16:12:49.079496+0200 Test[2269:1068036] Raising max DPB to 2 buffering 2018-03-07 16:12:49.082832+0200 Test[2269:1068290] Decoder wait done in 7 ms 2018-03-07 16:12:49.083399+0200 Test[2269:1068299] inserting 805 zeroes 2018-03-07 16:12:49.083526+0200 Test[2269:1068299] underrun of 44584 bytes 2018-03-07 16:12:49.981548+0200 Test[2269:1068307] auto hiding mouse cursor 2018-03-07 16:12:51.821438+0200 Test[2269:1068299] playback too early (-94713): down-sampling 2018-03-07 16:12:51.822685+0200 Test[2269:1067154] +[CATransaction synchronize] called within transaction 2018-03-07 16:12:51.822791+0200 Test[2269:1067154] +[CATransaction synchronize] called within transaction 2018-03-07 16:12:51.822862+0200 Test[2269:1067154] +[CATransaction synchronize] called within transaction 2018-03-07 16:12:51.839741+0200 Test[2269:1068307] picture is too late to be displayed (missing 20 ms) 2018-03-07 16:12:51.863828+0200 Test[2269:1068299] playback way too early (-145219): playing silence 2018-03-07 16:12:51.864392+0200 Test[2269:1068299] inserting 6970 zeroes 2018-03-07 16:12:51.894328+0200 Test[2269:1068290] killing decoder fourcc
h264'
2018-03-07 16:12:51.894529+0200 Test[2269:1068290] removing module "videotoolbox"
2018-03-07 16:12:51.902585+0200 Test[2269:1067154] [] <<<< AVOutputDeviceDiscoverySession (FigRouteDiscoverer) >>>> -[AVFigRouteDiscovererOutputDeviceDiscoverySessionImpl outputDeviceDiscoverySessionDidChangeDiscoveryMode:]: Setting device discovery mode to DiscoveryMode_None (client: Test)
2018-03-07 16:12:51.936225+0200 Test [2269:1068299] playback too late (72063): up-sampling
2018-03-07 16:12:51.994760+0200 Test[2269:1068307] picture is too late to be displayed (missing 21 ms)
2018-03-07 16:12:52.054620+0200 Test[2269:1068290] saving a free vout
2018-03-07 16:12:52.055020+0200 Test[2269:1068290] reusing provided vout
2018-03-07 16:12:52.055098+0200 Test[2269:1068290] removing module "h264"
2018-03-07 16:12:52.055313+0200 Test[2269:1068299] discarded audio buffer
2018-03-07 16:12:52.133023+0200 Test[2269:1068290] killing decoder fourcc mp4a' 2018-03-07 16:12:52.133135+0200 Test[2269:1068290] removing module "avcodec" 2018-03-07 16:12:52.225336+0200 Test[2269:1068290] removing module "ugly" 2018-03-07 16:12:52.225541+0200 Test[2269:1068290] removing module "scaletempo" 2018-03-07 16:12:52.428403+0200 Test[2269:1068290] removing module "float_mixer" 2018-03-07 16:12:52.428577+0200 Test[2269:1068290] keeping audio output 2018-03-07 16:12:52.428667+0200 Test[2269:1068290] removing module "mpeg4audio" 2018-03-07 16:12:52.428815+0200 Test[2269:1068290] removing module "ts" 2018-03-07 16:12:52.428975+0200 Test[2269:1068290] Program doesn't contain anymore ES 2018-03-07 16:12:52.429080+0200 Test[2269:1068290] removing module "record" 2018-03-07 16:12:52.438003+0200 Test[2269:1068290] removing module "prefetch" 2018-03-07 16:12:52.540425+0200 Test[2269:1068297] end of stream 2018-03-07 16:12:52.543215+0200 Test[2269:1068290] removing module "http" 2018-03-07 16:12:52.544653+0200 Test[2269:1068350] removing module "audiounit_ios" 2018-03-07 16:12:52.544901+0200 Test[2269:1068350] destroying useless vout 2018-03-07 16:12:52.545468+0200 Test[2269:1068307] removing module "ios" stopped 2018-03-07 16:12:52.550312+0200 Test[2269:1068307] deleting display 2018-03-07 16:12:52.550518+0200 Test[2269:1068307] removing module "glconv_cvpx" 2018-03-07 16:12:52.563484+0200 Test[2269:1068350] removing module "freetype" 2018-03-07 16:12:52.563905+0200 Test[2269:1068350] removing module "yuvp" 2018-03-07 16:12:52.563991+0200 Test[2269:1068350] removing module "swscale"
Logs from iPad:
2018-03-07 16:09:52.093 Test[15649:1198522] VoutDisplayEvent 'resize' 320x240 2018-03-07 16:09:52.094 Test[15649:1198522] VoutDisplayEvent 'resize' 447x341 2018-03-07 16:09:52.095 Test[15649:1198522] VoutDisplayEvent 'resize' 895x683 2018-03-07 16:09:52.095 Test[15649:1198522] VoutDisplayEvent 'resize' 895x683 2018-03-07 16:09:52.102 Test[15649:1198724] looking for glconv module matching "any": 1 candidates 2018-03-07 16:09:52.107 Test[15649:1198724] using glconv module "glconv_cvpx" 2018-03-07 16:09:52.115 Test[15649:1198522] VoutDisplayEvent 'resize' 447x341 2018-03-07 16:09:52.115 Test[15649:1198522] VoutDisplayEvent 'resize' 895x683 2018-03-07 16:09:52.115 Test[15649:1198724] using vout display module "ios" 2018-03-07 16:09:52.115 Test[15649:1198724] original format sz 720x576, of (0,0), vsz 720x576, 4cc CVPN, sar 64:45, msk r0x0 g0x0 b0x0 2018-03-07 16:09:52.116 Test[15649:1198724] VoutDisplayEvent 'resize' 1024x576 2018-03-07 16:09:52.116 Test[15649:1198593] removing module "freetype" 2018-03-07 16:09:52.118 Test[15649:1198593] looking for text renderer module matching "freetype": 1 candidates 2018-03-07 16:09:52.759 Test[15649:1198593] using text renderer module "freetype" 2018-03-07 16:09:52.762 Test[15649:1198593] Raising max DPB to 2 2018-03-07 16:09:53.047 Test[15649:1198522] VoutDisplayEvent 'mouse button' 0 t=6 2018-03-07 16:09:53.047 Test[15649:1198522] VoutDisplayEvent 'mouse button' 0 t=7 2018-03-07 16:09:54.064 Test[15649:1198724] auto hiding mouse cursor 2018-03-07 16:09:56.770 Test[15649:1198648] playback too early (-52850): down-sampling 2018-03-07 16:09:56.797 Test[15649:1198648] timing screwed (drift: -119252 us): stopping resampling 2018-03-07 16:09:56.797 Test[15649:1198648] playback too early (-118578): down-sampling 2018-03-07 16:09:56.982 Test[15649:1198648] playback way too early (-120105): playing silence 2018-03-07 16:09:56.982 Test[15649:1198648] inserting 5765 zeroes 2018-03-07 16:09:57.021 Test[15649:1198626] pic_holder_wait timed out 2018-03-07 16:09:57.392 Test[15649:1198522] VoutDisplayEvent 'resize' 1269x512 2018-03-07 16:09:57.413 Test[15649:1198648] playback too late (60441): up-sampling 2018-03-07 16:09:57.520 Test[15649:1198648] resampling stopped (drift: -18663 us) 2018-03-07 16:09:57.778 Test[15649:1198522] VoutDisplayEvent 'resize' 895x683 2018-03-07 16:09:57.978 Test[15649:1198648] playback too late (67971): up-sampling 2018-03-07 16:09:57.989 Test[15649:1198648] resampling stopped (drift: -14312 us) 2018-03-07 16:09:58.033 Test[15649:1198644] end of stream 2018-03-07 16:09:58.033 Test[15649:1198643] Can't read TS packet at 2772084 2018-03-07 16:09:58.033 Test[15649:1198643] EOF reached 2018-03-07 16:09:58.058 Test[15649:1198724] picture is too late to be displayed (missing 1199 ms) 2018-03-07 16:09:58.059 Test[15649:1198724] picture is too late to be displayed (missing 1159 ms)
And in iPad it not calling removing module and etc.