haiku/src/apps/mediaplayer
Kacper Kasper ba6a1df423 MediaPlayer: cache file duration in memory
* SetAttribute() will fail for read-only volumes.
* Duration() is called in playlist's Draw() method.
  Since _CalculateDuration() is very expensive because it parses
  file metadata, it causes visible drawing glitches and playlist is
  almost unusable.
* Mitigates #15221. I don't consider this a fix because first draw
  is still going to block for a long time, but at least scrolling
  works smoothly now. Ideally, file metadata would be parsed
  asynchronously in a separate thread and drawn as it becomes
  available.

Change-Id: If198d61c77a7746bcc0e19b7caeed89ce829c247
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4597
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-10-19 08:21:43 +00:00
..
interface src/apps Code formatting 2019-01-25 12:40:34 +00:00
media_node_framework ffmpeg/MediaPlayer: fix seeking in audio with cover art 2020-09-18 06:24:46 +00:00
playlist MediaPlayer: cache file duration in memory 2021-10-19 08:21:43 +00:00
settings Move SettingsMessage to a central location 2021-04-11 08:53:18 +00:00
supplier MediaPlayer: improve handling of cover art. 2020-09-20 14:44:42 +02:00
support Move SettingsMessage to a central location 2021-04-11 08:53:18 +00:00
Controller.cpp use .IsSet() instead if .Get() != NULL 2021-02-02 15:17:54 +00:00
Controller.h Mediaplayer: remember position and volume 2018-07-11 17:37:56 +02:00
ControllerObserver.cpp * Added basic support for SRT subtitle files. It only works 2010-09-27 15:26:41 +00:00
ControllerObserver.h * Added basic support for SRT subtitle files. It only works 2010-09-27 15:26:41 +00:00
ControllerView.cpp mediaplayer: write a break statement 2019-09-07 15:04:55 +00:00
ControllerView.h MediaPlayer: Relicense to MIT 2017-12-13 14:40:11 -06:00
InfoWin.cpp BMessageFormat: Rename to BStringFormat. 2018-08-13 20:49:00 -04:00
InfoWin.h MediaPlayer: Relicense to MIT 2017-12-13 14:40:11 -06:00
Jamfile Move SettingsMessage to a central location 2021-04-11 08:53:18 +00:00
MainApp.cpp MediaPlayer: Relicense to MIT 2017-12-13 14:40:11 -06:00
MainApp.h MediaPlayer: Relicense to MIT 2017-12-13 14:40:11 -06:00
MainWin.cpp MediaPlayer: close() cd/dvd device after eject. 2021-07-27 12:23:25 +00:00
MainWin.h MediaPlayer: close() cd/dvd device after eject. 2021-07-27 12:23:25 +00:00
MediaPlayer.rdef Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again. 2011-03-25 22:13:48 +00:00
NetworkStreamWin.cpp MediaPlayer: Fix layout insets & translations in NetworkStreamWin. 2016-07-10 17:53:47 -04:00
NetworkStreamWin.h MediaPlayer: Fetch the clipboard for an url 2016-07-08 13:49:54 +02:00
PlaybackState.h * Coding style cleanups, no functional change. 2009-10-28 14:35:33 +00:00
VideoView.cpp Improved member variable naming as suggested by Stippi. 2012-08-27 20:00:06 +02:00
VideoView.h Improved member variable naming as suggested by Stippi. 2012-08-27 20:00:06 +02:00