the MobileVLCKit crashed while I do the 'pause' operation

iOS, iPad, iPhone, tvOS specific usage questions
rowa
Blank Cone
Blank Cone
Posts: 30
Joined: 29 Jan 2013 04:34

the MobileVLCKit crashed while I do the 'pause' operation

Postby rowa » 17 Dec 2016 08:41

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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: the MobileVLCKit crashed while I do the 'pause' operation

Postby dfuhrmann » 18 Dec 2016 08:59

Do you have logs and a backtrace for the crash?

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: the MobileVLCKit crashed while I do the 'pause' operation

Postby ssbmaccom » 19 Dec 2016 18:06

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.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 4 guests