Skip to content
Snippets Groups Projects
  1. Aug 17, 2022
  2. Aug 13, 2022
  3. Aug 12, 2022
  4. Aug 10, 2022
    • Thomas Guillem's avatar
      lib/media_player: add the vlc_player Timer API · 52cda837
      Thomas Guillem authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      Any LibVLC users could request a timer from the player. This Media Player
      timer has its own event API since:
      
       - It is only used to receive time update points:
      
       - The timer is not locked by the player lock. Indeed the player lock can be
         too "slow" (it can be recursive, it is used by the playlist, and is it held
         when sending all events). So it's not a good idea to hold this lock for
         every frame/sample updates.
      
       - The minimum delay between each updates can be configured: it avoids to flood
         the UI when playing a media file with very high fps or very low audio sample
         size.
      
      The libvlc_media_player_time_point struct is used by timer update
      callbacks. This public struct hold all the informations to interpolate a
      time at a given date. It can be done with the
      libvlc_media_player_time_point_interpolate() helper. That way, it is
      now possible to get the last player time without holding any locks.
      
      There is only one type of timer (for now):
      
      libvlc_media_player_watch_time(): update are sent only when a frame or a
      sample is outputted. Users of this timer should take into account that
      the delay between each updates is not regular and can be up to 1seconds
      (depending of the input). In that case, they should use their own timer
      (from their mainloop) and use
      libvlc_media_player_time_point_interpolate() to get the last time.
      52cda837
  5. Aug 09, 2022
  6. Aug 06, 2022
  7. Jul 31, 2022
  8. Jul 27, 2022
  9. Jun 29, 2022
  10. Jun 18, 2022
  11. Jun 17, 2022
Loading