Commit Graph

1153 Commits

Author SHA1 Message Date
Jordan Petridis
2a9224d89b
Content: Change the user-facing string of the home stack. 2018-06-20 13:01:47 +03:00
Jordan Petridis
e53542c91a
EpisodeWidget: Mark an episode as played when the play button is hit.
Ideally episodes would be marked as played only when they have
passed a cerain point in their duration, but till thats ready
we should keep marking them.
2018-06-20 12:36:56 +03:00
Jordan Petridis
45469746e1
PlayerWidget: Delete commented out stuff. 2018-06-19 16:34:33 +03:00
Jordan Petridis
984ccf33ae
PlayerInfo: Increase the size of the cover. 2018-06-19 00:05:29 +03:00
Jordan Petridis
21b7dbac8b
PlayerInfo: Limit label widths and add tooltips. 2018-06-18 22:49:08 +03:00
Jordan Petridis
21946f7feb
PlayerInfo: Swap bold properties of the labels. 2018-06-18 21:39:37 +03:00
Jordan Petridis
3d693c6906
PlayerExt: Add a stop method.
Also connect on the gst_player::Player::connect_on_stream_end method.

The main reason for this is to be able to reset the slider bar to 0
upon a stream ends.
2018-06-18 19:09:12 +03:00
Jordan Petridis
22f3d22998
PlayerWidget: refactor seek method. 2018-06-18 18:05:53 +03:00
Jordan Petridis
cdf2f62ee8
PlayerWidget: Rewind on pause. 2018-06-16 19:50:23 +03:00
Jordan Petridis
b73ae01a10
PlayerWidget: Remove an .expect() occurrence. 2018-06-16 16:29:40 +03:00
Jordan Petridis
c8b6fa611f
PlayerWidget: Tweak gst_player config. 2018-06-16 15:59:22 +03:00
Jordan Petridis
1caec7955b
PlayerTimes: Display human-friendly values. 2018-06-16 14:33:21 +03:00
Jordan Petridis
03fdf3854c
PlayerTimes: Replace unnecessary Arc with Rc. 2018-06-16 12:40:31 +03:00
Jordan Petridis
9156b1b388
PlayerTimes: create wrapper struct of gst::ClockTime.
Now on_duration_changed requires a `Duration` type and
on_position_updated requires a `Position` type as oppose to
both accepting `ClockTime` as their argument.
2018-06-16 12:35:51 +03:00
Jordan Petridis
7aeedc84e2
PlayerWidget: Group the button connect_clicked methods. 2018-06-15 18:19:17 +03:00
Jordan Petridis
1f205220b8
PlayerWidget: Move on_duration_change and on_postion_updated methods.
Previously they depended on the player/pipeline to get the ClockTime
values, and only `PlayerWidget` had access to the `gst_player::Player`
object.

Now that it uses the gst_player methods instead of the raw pipeline
methods to get the ClockTime values it no longer needs access to the whole
PlayerWidget object.
2018-06-15 18:05:19 +03:00
Jordan Petridis
2c720545c3
PlayerWidget: Refactor the position_changed/updated callback.
It now uses gst_player::Player::connect_position_updated callback
to send, cross threads, the `position` value to the gtk main loop
which then updates the widget.
2018-06-15 17:56:47 +03:00
Jordan Petridis
d44be276c2
PlayerWidget::seek handle the case where the offset might be none. 2018-06-15 17:34:05 +03:00
Jordan Petridis
9b9793efbf
PlayerWigdet: Refactor the way the duration label is updated.
This now connect's directly to gst_player::Player::connect_duration_changed
method.

The method then sends a cross-thread msg to the Action channel in the main loop that
then updates the widget.
2018-06-15 17:30:49 +03:00
Jordan Petridis
582b445cde
PlayerWiget: refactor the seekbar connect signal. 2018-06-15 13:52:33 +03:00
Jordan Petridis
bbed3f645c
PlayerWidget: Log the gst warnings. 2018-06-15 13:02:27 +03:00
Jordan Petridis
196b2064d3
PlayerWidget: Remove unused vars an Enum. 2018-06-14 10:55:50 +03:00
Jordan Petridis
567b3a556b
PlayerWidget: Connect the fast-forward and rewind buttons, sort of.
There appears to be a bug where it seeks 17 seconds instead of 10.
2018-06-14 10:32:41 +03:00
Jordan Petridis
123248c016
PlayerWidget: Connect to the errors callback. 2018-06-14 10:07:25 +03:00
Jordan Petridis
04e0a10c6b
PlayerWidget: Refactor the timers callbacks.
Should use the gst_player::Player callbacks instead but they require
the Send Trait which means we would need to use SendCell and that's
not something I am going to deal with right now.
2018-06-14 09:54:35 +03:00
Jordan Petridis
24cb376551
PlayerWidget: Set a custom config for the gst Player. 2018-06-14 09:24:24 +03:00
Jordan Petridis
c15636ff8c
PlayerWidget: Wire the PlayerTimes labels and scale.
Adapted from gstreamer basic-tutorial-5.
https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html
2018-06-14 05:08:37 +03:00
Jordan Petridis
5a36eb1ac4
PlayerWidget: Wire the play and pause buttons and add style classes to the Info Labels.
This also includes the yak shaving of a ::new and ::inti methods.
2018-06-14 05:08:25 +03:00
Jordan Petridis
67f14397f8
CI: disable debian builds fow now.
Debian stable provides gst 1.10 but the gst-rs bindings requiere
v 1.12 to build.

I will make custom images Soon™
2018-06-14 02:58:07 +03:00
Jordan Petridis
429bacd7ab
h-gtk: Remove unused .ui file. 2018-06-14 00:18:56 +03:00
Jordan Petridis
e3f1174cee
CI: Add gstreamer as a dep for the debian build. 2018-06-14 00:06:45 +03:00
Jordan Petridis
9cbc68a0a9
cargo fmt 2018-06-13 22:42:07 +03:00
Jordan Petridis
0d22a2e53d
PlayerWidget: Wire the widget to the GUI.
This commit also removes the majority of the playback widget,
though most of it's code will make it to the PlayerWidget once
it starts to get wired to the gtreamer_plaer::Player.
2018-06-13 22:38:28 +03:00
Jordan Petridis
1455772d4e
PlayerWidget: Intial draft of the the PlayerExt trait. 2018-06-13 18:10:45 +03:00
Jordan Petridis
dc043ebc5c
h-gtk: Bind the new player widget to code. 2018-06-12 17:43:21 +03:00
Jordan Petridis
76236f486a
Rework the player widget. 2018-06-12 15:42:43 +03:00
Zander Brown
f84b177ba4
Start hooking things up
Still doesn't accept input
2018-06-12 15:42:39 +03:00
Zander Brown
1456e196fc
Initial playback control area
(not plumbed in)
2018-06-12 15:42:35 +03:00
Zander Brown
910a453a8e
Initial playback
... and not a lot more. Hit play and the podcast will play, press play on something else and that will play instead
2018-06-12 15:42:31 +03:00
Jordan Petridis
bbabc6f5e9
h-gtk: Add resources/ to the cargo check list. 2018-06-11 14:23:29 +03:00
Jordan Petridis
2060579bb4
gitlab templates: Fix markdown formatting. 2018-06-09 16:16:57 +03:00
Jordan Petridis
b0f0940605 Merge branch 'master' into 'master'
Our GActions don't need to be in the app namespace

See merge request World/hammond!39
2018-06-07 17:37:12 +00:00
Zander Brown
ee23df176d Our GActions don't need to be in the app namespace 2018-06-07 18:06:36 +01:00
Jordan Petridis
d53865d81b
Update deps. 2018-06-07 16:14:40 +03:00
Jordan Petridis
7becfd8adb
Commit Updated Cargo.lock.
This was part of a9feed56fe but
forgot to commit it.
2018-06-07 15:47:41 +03:00
Jordan Petridis
a9feed56fe
Replace html2pango with html2text. 2018-06-06 15:28:44 +03:00
Jordan Petridis
dea517c17c
Update the Changelog. 2018-06-05 14:58:29 +03:00
Jordan Petridis
6d93ceb910
EpisodeWidget: Minor style change. 2018-06-05 14:33:18 +03:00
Jordan Petridis
9b0ac5b83d
EpisodeWidget: Do not lock the Proggress struck when running update callbacks.
Previously each time we wanted to inspect the `Progress` struct we
were blocking which was problematic since the downloader also wants
to block to update it.

Now we use try_lock() and if a lock can't be aquired we requeue another
callback. That way we can also be way more aggressive about the interval
in whihc it the callbacks will run.
2018-06-05 14:17:37 +03:00
Jordan Petridis
acabb40171 CI and Flatpak: Use the 3.28 runtime till fdo 1.8 is fixed. 2018-06-04 14:25:38 +00:00