#6564: [MediaPlayer] show duration in playlist window (easy)
----------------------------------------+----------------------------
Reporter: diver | Owner: stippi
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Applications/MediaPlayer | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------------------+----------------------------
Comment (by TwoFx):
I have made some improvements to the patch. If the playlist is dealing
with a file (which, in practice, it does 100% of the time I think, but the
interface doesn't require it to be this way), the BMediaFile interface is
used directly to get the duration. All querying happens on a dedicated
BLooper thread. This solution runs faster than the old one and does not
impact startup time or lock up the UI when adding files to a playlist.
This does not yet add a duration attribute as neither Google nor grep have
helped me to find out more about this attribute. Once I know which code
and format this attribute has, it will be very straightforward to add the
to the implementation as PlaylistItem already has complete support for
attributes.
--
Ticket URL: <https://dev.haiku-os.org/ticket/6564#comment:10>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.