Player.Seek forward or back?
#1
Is there any way to know if the player is seeking forward or back?

Thanks.
Reply
#2
Player.Forwarding, Player.Rewinding
or if you want a different route:
Substring(Player.SeekOffset,+,left) could also work
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
That's odd Substring(Player.SeekOffset,+,left) doesn't work but Substring(Player.SeekOffset,-,left) does. Huh

And then it doesn't work if seeking a chapter and Player.Forwarding and Player.Rewinding don't work at all.

EDIT: Just used !SubString(Player.SeekOffset,-) for forward step.
Reply
#4
(2014-12-07, 22:15)Hitcher Wrote: That's odd Substring(Player.SeekOffset,+,left) doesn't work but Substring(Player.SeekOffset,-,left) does. Huh

And then it doesn't work if seeking a chapter and Player.Forwarding and Player.Rewinding don't work at all.

EDIT: Just used !SubString(Player.SeekOffset,-) for forward step.

so all works now? (perhaps removing ",left" does the trick)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
Step forward = !SubString(Player.SeekOffset,-)

Step back = SubString(Player.SeekOffset,-)

Neither work when the big step is a chapter jump though.
Reply
#6
(2014-12-07, 22:44)Hitcher Wrote: Step forward = !SubString(Player.SeekOffset,-)

Step back = SubString(Player.SeekOffset,-)

Neither work when the big step is a chapter jump though.

what does Player.SeekOffset output in that case? Just the number of the new Chapter?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#7
It's empty. Sad

Also Step forward should have been -

Code:
!IsEmpty(Player.SeekOffset) + SubString(Player.SeekOffset,-)
Reply
#8
God damn Infomanager .. So it works for regular stepping but fails for big steps / chapter seeks? I bet seeking is done outside of the SeekHandler then ..
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
Big steps work if they're time/percentage based but not if they're chapters.

Thanks.
Reply
#10
PR'd the offset fix @ https://github.com/xbmc/xbmc/pull/5919. A win32 build should be pushed to the mirrors in a few minutes in case you would like to give it at try.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#11
Tested, happy to report it works perfectly.

Many thanks.
Reply
#12
Thanks for testing this one as well Smile
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Player.Seek forward or back?0