How to distinguish audio file from video file MobileVLCKit

iOS, iPad, iPhone, tvOS specific usage questions
garanda
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Jun 2016 17:41

How to distinguish audio file from video file MobileVLCKit

Postby garanda » 28 Jun 2016 09:47

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.

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: How to distinguish audio file from video file MobileVLCKit

Postby ssbmaccom » 28 Jun 2016 17:29

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.

garanda
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Jun 2016 17:41

Re: How to distinguish audio file from video file MobileVLCKit

Postby garanda » 06 Jul 2016 08:34

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.


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

Who is online

Users browsing this forum: No registered users and 7 guests