Page 1 of 1
the MobileVLCKit crashed while I do the 'pause' operation
Posted: 17 Dec 2016 08:41
by rowa
I have builded the version of 3.0.0_per of MobileVLCKit, and run it on my own iPhone6s, but the app crashed while I pressing the pause button.
Why it crashed when pausing? And how to fix the problem? Thanks.
Re: the MobileVLCKit crashed while I do the 'pause' operation
Posted: 18 Dec 2016 08:59
by dfuhrmann
Do you have logs and a backtrace for the crash?
Re: the MobileVLCKit crashed while I do the 'pause' operation
Posted: 19 Dec 2016 18:06
by ssbmaccom
I do not know your project - but maybe it is a race condition. Be aware, that play and pause methods can not be called on the main thread. If you do so, it calls itself on a background thread and immediately returns. So internal states may be incorrect then, as the call on main thread returns before the stream is actually paused.
It was a bit of pain to move play and pause invocations to background via dispatch API - and then call back to main thread for GUI updates.