Page 1 of 1

How to use VLCKit.framework ?

Posted: 04 Mar 2018 09:48
by nirvana8888
Hello everyone.
I wrote simple code referring to the following url using CocoaPods.
https://wiki.videolan.org/VLCKit/

Here is the project file link.
https://ufile.io/pv17g
Note: before open the project, you need to execute `pod install` and delete Frameworks/libPods-SimpleVLCKitPlayer.a

this project always getting the following error when playing a movie.
How to solve this?

Code: Select all

*** Assertion failure in -[VLCMediaPlayer dealloc], /Users/fkuehne/Desktop/videolan/gits/VLCKit-3.0/Sources/VLCMediaPlayer.m:308

Thank you.

Re: How to use VLCKit.framework ?

Posted: 07 Mar 2018 13:07
by fkuehne
You need to keep a reference to the VLCMediaPlayer object. With your current code, its reference count will reach zero by the end of applicationDidFinishLaunching:() and be deallocated by the runtime. The assertion is raised because you may not dealloc VLCMediaPlayer during playback without previously calling stop().

Re: How to use VLCKit.framework ?

Posted: 07 Mar 2018 14:05
by nirvana8888
It works!
Thank you for your reply.