Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[guiinfo] DisplayAfterSeek should not return True if playback is paused #17312

Merged
merged 1 commit into from
Feb 8, 2020

Conversation

ronie
Copy link
Member

@ronie ronie commented Feb 2, 2020

as requested by several skinners on the forum (https://forum.kodi.tv/showthread.php?tid=348201)
do not set the DisplayAfterSeek infobool to True when pausing a video.

@scott967 @jurialmunkey @sualfred would be nice if you could test it

@ronie ronie added Type: Improvement non-breaking change which improves existing functionality Component: GUI engine v19 Matrix labels Feb 2, 2020
@ronie ronie added this to the Matrix 19.0-alpha 1 milestone Feb 2, 2020
Copy link
Member

@Rechi Rechi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the current code guidelines.

// notify GUI, skins may want to show the seekbar
CServiceBroker::GetGUI()->GetInfoManager().GetInfoProviders().GetPlayerInfoProvider().SetDisplayAfterSeek();
// notify GUI, skins may want to show the seekbar
CServiceBroker::GetGUI()->GetInfoManager().GetInfoProviders().GetPlayerInfoProvider().SetDisplayAfterSeek();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ColumnLimit in .clang-format is set to 100 which defines line length [...]

https://github.com/xbmc/xbmc/blob/master/docs/CODE_GUIDELINES.md#3-formatting

@@ -291,7 +291,7 @@ EVENT_RESULT CGUIWindowFullScreen::OnMouseEvent(const CPoint &point, const CMous
void CGUIWindowFullScreen::FrameMove()
{
float playspeed = g_application.GetAppPlayer().GetPlaySpeed();
if (playspeed != 1.0 && !g_application.GetAppPlayer().HasGame())
if (playspeed != 1.0 && !g_application.GetAppPlayer().HasGame() && !g_application.GetAppPlayer().IsPausedPlayback())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ColumnLimit in .clang-format is set to 100 which defines line length [...]

https://github.com/xbmc/xbmc/blob/master/docs/CODE_GUIDELINES.md#3-formatting

@scott967
Copy link
Contributor

scott967 commented Feb 4, 2020

Used Win x64 test build and enabled Player.DisplayAfterSeek in DialogSeekBar. Observed video during pause/unpause and frameadvance. I no longer get the DialogSeekBar "DisplayAfterSeek" after unpausing. So looks GTG to me.

@jjd-uk
Copy link
Member

jjd-uk commented Feb 8, 2020

I've also tested using a modded version of Estuary (see note) and it's works perfectly.

Note - Something I've wanted for a long in Estuary is the ability to have reduced seekbar when paused, after this change I now have working proof of concept.

@ronie ronie merged commit fc33910 into xbmc:master Feb 8, 2020
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Feb 17, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Feb 18, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
@Ch1llb0
Copy link

Ch1llb0 commented Feb 23, 2020

Can this fix be backported to Leia as well? This would be really handy for current setups as well.

Maven85 pushed a commit to Maven85/kodi that referenced this pull request Feb 26, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request May 5, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
@ronie ronie deleted the displayafterseek branch July 29, 2020 00:09
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 4, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 5, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 6, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 7, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 7, 2020
[guiinfo] DisplayAfterSeek should not return True if playback is paused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: GUI engine Type: Improvement non-breaking change which improves existing functionality v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants