History log of /haiku/src/apps/mediaplayer/interface/SeekSlider.cpp
Revision Date Author Comments
# 5bb671cc 19-Oct-2022 Augustin Cavalier <waddlesplash@gmail.com>

MediaPlayer: Fix a hard-coded font size.


# fd5c3422 21-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Show the window when opening files, since that shows the nice
"opening file bla" message and makes starting MediaPlayer feel
even more snappy.
* Show the window at the no-video location when opening files.
* Move the "Drop files to play" message handling into MainWin
and make sure it shows after failed attempts to open a file
when the playlist is still empty.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38764 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b98aa3ef 14-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Removed left-over debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38644 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 341ea11e 12-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Implemented enlarging controls in full-screen mode, it's optional
and the setting defaults to "on".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38610 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 737186cc 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Fix the build and remove a note that is no longer necessary
since the file has been pretty much rewritten anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38587 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b000c602 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Reimplemented the transport buttons based on BButton.
* Reimplemented the SeekSlider and VolumeSlider based on BSlider.
* Updated the look to fit with the rest of Haiku.
* Switched TransportControlGroup to layout management.
* Got rid of a whole lot of ancient cruft.
* Fixed a bunch of display bugs in PeakView.

There is no usability change, yet, except that the controls stay
centered, and that the volume slider snaps to the middle now.

I didn't check if other targets use the removed sources, before
I do a build of an image, I wanted this in SVN. I am using another
computer and have not yet had any file corruptions so far, but I
am not trusting it completely yet... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38584 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8e9973a0 22-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Added easy method to retrieve the playback position (of the seek slider [0..1]).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36417 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2ce0594 22-Feb-2010 Stephan Aßmus <superstippi@gmx.de>

Invalidate one more pixel to the left/right of the slider knowb, to account for
anti-aliasing artifacts that extend outside the calculated knob-frame. Fixes
#2433.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35572 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e663610e 18-Nov-2009 Stephan Aßmus <superstippi@gmx.de>

* Made opening playlist items asynchronous (in the Controller thread).
* Resolved TODO: Use the existing "FileChanged" notification in the main
window to adopt the UI to the currently playing item.
* When opening a file takes some time, the window is now free to start hidden
and setup a message runner to unhide it after 150 msecs.
* When launching MediaPlayer with files, the 150 msecs delay is used to
start the window hidden and pop up right at the correct location for audio.
If opening the first audio file takes less than 150 msecs, the window will
already show as soon as possible.
* While opening a file in the Controller, the window will say so in the
disabled seek slider instead of showing the message "Drop media files here.".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9282400f 06-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

* The SeekSlider did not update the knob when it was resized.
* Subtile visual improvements to the SeekSlider.
* Added a PeakView for displaying the audio peaks that are produced by
the AudioProducer.
* A MessageEvent can now directly take a custom BMessage for delivery.
* The peak notification mechanism is a bit separate from the rest of the
Controller notification design, since the notification delivery should
be delayed until the audio is actually audible. I may change this
quick and dirty design though, since it is not so nice. The target
time could also be part of the message and be handled at a different
stage, but that would make it less efficient.
* Layout improvements to the playback controls.
* Code cleanup here and there, changed some license statements.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26280 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bed1cb4 31-May-2008 Stephan Aßmus <superstippi@gmx.de>

* The SeekSlider had the wrong follow mode. If the window was resized in such
a way that the transport group did not need to re-layout, then the seek
slider would not be at the correct position.
* Layout the transport controls with a fixed maximum width in order to prevent
spreading them too much.
* Fix "About" and "MediaPlayer" missing a space.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fc56ed5 30-May-2008 Stephan Aßmus <superstippi@gmx.de>

* Moved a bunch of non-primary interface classes into a new subfolder
"interface"

* Complete reimplementation of the playback engine using Media Nodes:
- Seeking video files does not appear to lockup the playback anymore, but
works on a frame accurate level even for keyframe based streams. There is
currently a problem with certain container formats, the audio track reports
a "Device Seek Error" in certain conditions. In that case audio goes silent,
and can be restarted by going back to the beginnings of the stream.
- Video overlays are now supported.
- It would be possible to connect the output of the MediaPlayer to other
applications or dormant media nodes.

* Known regressions:
- The volume slider has currently no effect anymore.
- Switching the audio track during playback has a known race condition and
can crash the player.
- The new engine is not as "light weight" as the old one. I tagged the
previous implementation in tags/components/mediaplayer-engine-v1. It does
not seem to have any noticable effect though.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25725 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd5c34224cb3b474cd9dddddccd5225978d5e68c 21-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Show the window when opening files, since that shows the nice
"opening file bla" message and makes starting MediaPlayer feel
even more snappy.
* Show the window at the no-video location when opening files.
* Move the "Drop files to play" message handling into MainWin
and make sure it shows after failed attempts to open a file
when the playlist is still empty.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38764 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b98aa3ef8bcfe69a284b854efcc97c2f53c834f8 14-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Removed left-over debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38644 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 341ea11eb304738c351755be9d15ab232e4a037a 12-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Implemented enlarging controls in full-screen mode, it's optional
and the setting defaults to "on".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38610 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 737186ccb0277df69af895aa870706cd4db075dd 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Fix the build and remove a note that is no longer necessary
since the file has been pretty much rewritten anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38587 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b000c602e305d40003307dcb73fbe3421b117b3d 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Reimplemented the transport buttons based on BButton.
* Reimplemented the SeekSlider and VolumeSlider based on BSlider.
* Updated the look to fit with the rest of Haiku.
* Switched TransportControlGroup to layout management.
* Got rid of a whole lot of ancient cruft.
* Fixed a bunch of display bugs in PeakView.

There is no usability change, yet, except that the controls stay
centered, and that the volume slider snaps to the middle now.

I didn't check if other targets use the removed sources, before
I do a build of an image, I wanted this in SVN. I am using another
computer and have not yet had any file corruptions so far, but I
am not trusting it completely yet... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38584 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8e9973a09d9258802f9bd0142e1c4c877dfd9688 22-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Added easy method to retrieve the playback position (of the seek slider [0..1]).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36417 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2ce05945a0779eca17d9328b07567f3579ae4f8 22-Feb-2010 Stephan Aßmus <superstippi@gmx.de>

Invalidate one more pixel to the left/right of the slider knowb, to account for
anti-aliasing artifacts that extend outside the calculated knob-frame. Fixes
#2433.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35572 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e663610e84ed96e246aa7bb6d416bd51c1166447 18-Nov-2009 Stephan Aßmus <superstippi@gmx.de>

* Made opening playlist items asynchronous (in the Controller thread).
* Resolved TODO: Use the existing "FileChanged" notification in the main
window to adopt the UI to the currently playing item.
* When opening a file takes some time, the window is now free to start hidden
and setup a message runner to unhide it after 150 msecs.
* When launching MediaPlayer with files, the 150 msecs delay is used to
start the window hidden and pop up right at the correct location for audio.
If opening the first audio file takes less than 150 msecs, the window will
already show as soon as possible.
* While opening a file in the Controller, the window will say so in the
disabled seek slider instead of showing the message "Drop media files here.".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9282400ff444c8d85c264f0f5fd16d1c639b7fae 06-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

* The SeekSlider did not update the knob when it was resized.
* Subtile visual improvements to the SeekSlider.
* Added a PeakView for displaying the audio peaks that are produced by
the AudioProducer.
* A MessageEvent can now directly take a custom BMessage for delivery.
* The peak notification mechanism is a bit separate from the rest of the
Controller notification design, since the notification delivery should
be delayed until the audio is actually audible. I may change this
quick and dirty design though, since it is not so nice. The target
time could also be part of the message and be handled at a different
stage, but that would make it less efficient.
* Layout improvements to the playback controls.
* Code cleanup here and there, changed some license statements.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26280 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bed1cb42d58a4d9b94b708a3b40137cee56b988 31-May-2008 Stephan Aßmus <superstippi@gmx.de>

* The SeekSlider had the wrong follow mode. If the window was resized in such
a way that the transport group did not need to re-layout, then the seek
slider would not be at the correct position.
* Layout the transport controls with a fixed maximum width in order to prevent
spreading them too much.
* Fix "About" and "MediaPlayer" missing a space.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fc56ed57bdd5d2d44f33edd17d94210704613bd 30-May-2008 Stephan Aßmus <superstippi@gmx.de>

* Moved a bunch of non-primary interface classes into a new subfolder
"interface"

* Complete reimplementation of the playback engine using Media Nodes:
- Seeking video files does not appear to lockup the playback anymore, but
works on a frame accurate level even for keyframe based streams. There is
currently a problem with certain container formats, the audio track reports
a "Device Seek Error" in certain conditions. In that case audio goes silent,
and can be restarted by going back to the beginnings of the stream.
- Video overlays are now supported.
- It would be possible to connect the output of the MediaPlayer to other
applications or dormant media nodes.

* Known regressions:
- The volume slider has currently no effect anymore.
- Switching the audio track during playback has a known race condition and
can crash the player.
- The new engine is not as "light weight" as the old one. I tagged the
previous implementation in tags/components/mediaplayer-engine-v1. It does
not seem to have any noticable effect though.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25725 a95241bf-73f2-0310-859d-f6bbb57e9c96