Search found 9 matches

Go to advanced search

by pichelo
13 Oct 2020 00:00
Forum: Development around libVLC
Topic: libvlc without video
Replies: 2
Views: 322

Re: libvlc without video

Thanks mfki for the answer.

Code: Select all

--no-video
could definitely help to save resources at runtime.
I will take a look at disabling plugins individually.
by pichelo
04 Oct 2020 17:47
Forum: Development around libVLC
Topic: libvlc without video
Replies: 2
Views: 322

libvlc without video

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...
by pichelo
15 Dec 2019 20:42
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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,...
by pichelo
14 Dec 2019 21:50
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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...
by pichelo
14 Dec 2019 00:19
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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 ...
by pichelo
13 Dec 2019 23:55
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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 ...
by pichelo
04 Dec 2019 16:07
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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_...
by pichelo
13 Oct 2019 20:32
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Re: Get track+media position when playing m3u

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...
by pichelo
03 Oct 2019 20:24
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1426

Get track+media position when playing m3u

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...

Go to advanced search