How to use VLCKit.framework ?

This forum is about all development around libVLC.
nirvana8888
New Cone
New Cone
Posts: 2
Joined: 04 Mar 2018 09:42

How to use VLCKit.framework ?

Postby nirvana8888 » 04 Mar 2018 09:48

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.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to use VLCKit.framework ?

Postby fkuehne » 07 Mar 2018 13:07

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().
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

nirvana8888
New Cone
New Cone
Posts: 2
Joined: 04 Mar 2018 09:42

Re: How to use VLCKit.framework ?

Postby nirvana8888 » 07 Mar 2018 14:05

It works!
Thank you for your reply.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests