delay between play and is_playing
Posted: 13 Aug 2013 20:01
I'm working on an application where libvlc is used as player.
In this application I have to wait for libvlc to finish playing some kind of media and then take some action.
For example start playing a new media file.
But I have noticed that if I call libvlc_media_player_play and then check libvlc_media_player_is_playing that the player is not yet playing. After a while (not really an specific amount of time) it will start to play and libvlc_media_player_is_playing returns true.
My application already thinks that the file is finished, because the first time libvlc_media_player_is_playing is called it returns false.
Is there a possibility that there is a call in the library where it waits for actually starts playing the media file?
In this application I have to wait for libvlc to finish playing some kind of media and then take some action.
For example start playing a new media file.
But I have noticed that if I call libvlc_media_player_play and then check libvlc_media_player_is_playing that the player is not yet playing. After a while (not really an specific amount of time) it will start to play and libvlc_media_player_is_playing returns true.
My application already thinks that the file is finished, because the first time libvlc_media_player_is_playing is called it returns false.
Is there a possibility that there is a call in the library where it waits for actually starts playing the media file?