Hi, I'm using libvlc on an embedded project where only audio functionality is used. In order to reduce storage footprint on the embedded device, I was wondering whether entire video and frontend functionalities can be stripped off when building. Is that possible in bulk without selecting features to...
All solved. My mistake at wiring a push button had the effect of calling libvlc_media_list_player_next, which somehow unnoticed started the track (1st event), then the expected flow arrived to "play item at index" which generated the second (proper) event. Thanks a lot for the two answers,...
While investigating, something even stranger is noticed. The media list plays even without calling either libvlc_media_list_player_play_item_at_index or libvlc_media_list_player_play. This somehow explains the double playing event. But does not explain the unexpected behavior itself. Is that known b...
After playing a bit with the callback, something unexpected happened If I do not detach immediately the event it is called twice. The set position call does not work the first time, but if I ignore the first event trigger (decrement a counter in user data, initialized to 1), then set position works ...
Hi, before I already tried something simpler like: while (!media is playing) {}, which did not work either. Nonetheless I tried by attaching to the media playing event and this is the result: typedef struct { libvlc_event_manager_t *evt_manager; float position; } tn_set_position_user_data_t; static ...
I have a new problem now. While playlist handling works like a charm, setting the position does not work anymore. This is roughly how is done in my code (simplified C code): media = libvlc_media_new_path(_vlc, /* m3u path */); libvlc_media_parse_with_options(media, libvlc_media_parse_local | libvlc_...
At first it didn't work, so I checked better on initialization. My code used to create a new media list from scratch (libvlc_media_list_new), then adding the m3u media as sole item. This is why the list resulted in a single item. The strange fact is that libvlc_media_list_player_next or libvlc_media...
Hi VideoLAN Forum, I hope this is the right place for my topic. I wrote some code using libvlc that plays m3u files. Everything worked like a charm, until I decided to introduce feature to save state when the media is stopped. I got familiar with functions like libvlc_media_player_get_position which...