when to call libvlc_audio_get_track_count ?

This forum is about all development around libVLC.
dongxf
Blank Cone
Blank Cone
Posts: 10
Joined: 14 Oct 2011 07:31

when to call libvlc_audio_get_track_count ?

Postby dongxf » 27 Jan 2016 14:35

Hi,
I need to get audio track infomations ASAP when I play a media file, I found when I call libvlc_audio_get_track_count just after play, it returns 0. I have to wait for about 2 seconds to get the correct result.
Does anyone know if there is a event to notify me it's ready to call libvlc_audio_get_track_count ?

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: when to call libvlc_audio_get_track_count ?

Postby Rémi Denis-Courmont » 27 Jan 2016 15:14

ESAdded
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dongxf
Blank Cone
Blank Cone
Posts: 10
Joined: 14 Oct 2011 07:31

Re: when to call libvlc_audio_get_track_count ?

Postby dongxf » 28 Jan 2016 12:40

ESAdded
I searched the whole vlc2.1.3 sources, did not find any information about ESAdded, could you tell me some detail ? thanks !

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: when to call libvlc_audio_get_track_count ?

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:42

libvlc_MediaPlayerESAdded
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests