Skip to content

Lua extensions: meta_changed() not called correctly for MP3 audios

The goal is for an extension to set input "run-time' for a VLC playlist so that each media can be sampled for a set time. This seems to work for all MP4 videos but only first MP3 audio. For MP3s, setting "run-time' does not seem to work after the first play for the following reasons:

  1. It seems that "run-time" needs to be set after meta_changed() is called with state = 1 and not with state = 2.
  2. For MP3s, meta_changed() does not seem to be called with state = 1 for second and later plays, thus not allowing "run-time" to be set after the first media in the playlist. State = 1 does seem to be called for each MP4 in a playlist. Run the attached lua test after loading two sample MP4s or MP3s.

Thanks for your help - Rocky

Edited by Pierre Ynard
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information