Page 1 of 1

How to distinguish audio file from video file MobileVLCKit

Posted: 28 Jun 2016 09:47
by garanda
Is there any way to know if the stream to play is only a audio file, I need to make a difference workflow for only audio playback.

I'm Using MobileVLCKit 2.2.2 from cocoapods.

Re: How to distinguish audio file from video file MobileVLCKit

Posted: 28 Jun 2016 17:29
by ssbmaccom
I would assume you could ask VLCKit to get the track infos and inspect these. When there are no video tracks it is most likely an audio file.

Re: How to distinguish audio file from video file MobileVLCKit

Posted: 06 Jul 2016 08:34
by garanda
I would assume you could ask VLCKit to get the track infos and inspect these. When there are no video tracks it is most likely an audio file.
Yeah it works great, I'm using the mediaPlayerTimeChanged delegate's method and it works great.

Thanks for your help.