HOW-TO:Modify time seeking: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Line 39: Line 39:
|-
|-
| <syntaxhighlight lang="xml" enclose="div">
| <syntaxhighlight lang="xml" enclose="div">
<playcountminimumpercent>90</playcountminimumpercent>
<smallstepbackseconds>7</smallstepbackseconds>
</syntaxhighlight>
</syntaxhighlight>


| {{huge|'''How much must be viewed to be marked as watched'''}}
| {{big|'''Small step back'''}}


Since a lot of people don't watch credits at the end of a movie or TV show, this value allows us to skip those parts while still automatically marking something as watched. This setting is defined in a percentage with the default being 90 percent.
SmallStepBack is the only "step" in XBMC that doesn't have a forward option. This is because the idea behind SmallStepBack is to quickly jump back and hear a line of dialogue or some quick action that was missed.
|-
|-
| <syntaxhighlight lang="xml" enclose="div">
| <syntaxhighlight lang="xml" enclose="div">
<ignoresecondsatstart>180</ignoresecondsatstart>
<usetimeseeking>true</usetimeseeking>
</syntaxhighlight>
</syntaxhighlight>


| {{huge|'''Time to ignore at the start of a video before making a resume point'''}}
| {{big|'''Use time or percentages'''}}


This setting allows someone to start a video, only watch a couple of minutes, and then stop it without recording a resume point. This allows someone to do things such as check to see if the video is one they've seen or not, or to not mark a video if all you have seen is just the opening credits, etc. This setting is defined in seconds with the default being 180 seconds. For whole minutes simply multiply by 60.
By default, XBMC uses the time tags for videos above 20 minutes, and videos below 20 minutes will use the percentage tags. This setting can manually over ride this to always use the percentage values for steps/seeking.


|-
|-
| <syntaxhighlight lang="xml" enclose="div">
| <syntaxhighlight lang="xml" enclose="div">
<ignorepercentatend>8</ignorepercentatend>
<timeseekforward>30</timeseekforward>
<timeseekbackward>-30</timeseekbackward>
</syntaxhighlight>
</syntaxhighlight>


| {{huge|'''Percent at the end of a video to ignore to prevent making a resume point'''}}
| {{big|'''Normal time based jumps'''}}


This setting prevents a resume point from being recorded if it is within a certain percentage at the end of the video. The logic here is similar to <playcountminimumpercent>, where most people will probably want to skip end credits and not have a resume point made, as they are done watching the video. The setting is defined in a percentage in relation to the end of the video, and the default is 8 percent. For an hour movie this would ignore a little under 5 minutes from the end of the video.
Description goes here
 
|-
| <syntaxhighlight lang="xml" enclose="div">
<timeseekforwardbig>600</timeseekforwardbig>
<timeseekbackwardbig>-600</timeseekbackwardbig>
</syntaxhighlight>
 
| {{big|'''Big time based jumps'''}}
 
Description goes here
 
|-
| <syntaxhighlight lang="xml" enclose="div">
<percentseekforward>2</percentseekforward>
<percentseekbackward>-2</percentseekbackward>
</syntaxhighlight>
 
| {{big|'''Normal percentage based jumps'''}}
 
Description goes here
 
|-
| <syntaxhighlight lang="xml" enclose="div">
<percentseekforwardbig>10</percentseekforwardbig>
<percentseekbackwardbig>-10</percentseekbackwardbig>
</syntaxhighlight>
 
| {{big|'''Big percentage based jumps'''}}
 
Description goes here


|}
|}

Revision as of 07:39, 24 May 2014

Home icon grey.png   ▶ advancedsettings.xml
▶ Video library
▶ HOW-TO:Modify time seeking

This page describes various advancedsettings.xml settings that can be used to modify the default seek "steps" in XBMC, commonly mapped to the directional keys during playback (left, right, up, down). By default, up/down is "BigStepForward/Back" +/- 10 minutes, and left/right is "StepForward/Back" +/- 30 seconds. There is also "SmallStepBack", which is -7 seconds.

Steps

If you don't already have an advancedsettings.xml file, it's very simple to make. XBMC uses this file for advanced settings and features that normal users shouldn't modify without first knowing what they do, as well as for experimental features.

1 Create a plain text file (no rich text formatting, don't use .doc, etc) and save it as advancedsettings.xml. Make sure that the file extension is ".xml" and not ".txt" or ".xml.txt".
2 Cut and paste this into your new plain text file:
<advancedsettings>
  <video>
    <smallstepbackseconds>7</smallstepbackseconds>
    <usetimeseeking>true</usetimeseeking>
    <timeseekforward>30</timeseekforward>
    <timeseekbackward>-30</timeseekbackward>
    <timeseekforwardbig>600</timeseekforwardbig>
    <timeseekbackwardbig>-600</timeseekbackwardbig>
    <percentseekforward>2</percentseekforward>
    <percentseekbackward>-2</percentseekbackward>
    <percentseekforwardbig>10</percentseekforwardbig>
    <percentseekbackwardbig>-10</percentseekbackwardbig>
  </video>
</advancedsettings>
3 Change the values between the tags to fit your situation.
4 Save this file in your userdata folder:

The Userdata folder is a subfolder of the Kodi Data Folder and is located as shown in the table below.

Operating system Userdata Folder
Android Android/data/org.xbmc.kodi/files/.kodi/userdata/ (see note)
iOS /private/var/mobile/Library/Preferences/Kodi/userdata/
LibreELEC /storage/.kodi/userdata/
Linux ~/.kodi/userdata/
macOS /Users/<your_user_name>/Library/Application Support/Kodi/userdata/
Nvidia Shield (SMB) smb://<nvidiashieldurl>/internal/Android/data/org.xbmc.kodi/files/.kodi/userdata
OSMC /home/osmc/.kodi/userdata/
tvOS /private/var/mobile/Library/Preferences/Kodi/userdata/
webOS /media/developer/apps/usr/palm/applications/org.xbmc.kodi/.kodi/userdata/
Windows %APPDATA%\Kodi\userdata
Windows Portable <Install location chosen by you>\portable_data\userdata\
Windows via Microsoft Store %LOCALAPPDATA%\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\
Windows Xbox %LOCALAPPDATA%\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\
Note: In some Android setups the path may be slightly different to the one stated above.

Note: If you have an existing advancedsettings.xml file, make sure the <video></video> tags, and settings we'll add between them, are between the main <advancedsettings></advancedsettings> tags.


Settings explained

advancedsettings.xml tag what it does
<smallstepbackseconds>7</smallstepbackseconds>
Small step back

SmallStepBack is the only "step" in XBMC that doesn't have a forward option. This is because the idea behind SmallStepBack is to quickly jump back and hear a line of dialogue or some quick action that was missed.

<usetimeseeking>true</usetimeseeking>
Use time or percentages

By default, XBMC uses the time tags for videos above 20 minutes, and videos below 20 minutes will use the percentage tags. This setting can manually over ride this to always use the percentage values for steps/seeking.

<timeseekforward>30</timeseekforward>
<timeseekbackward>-30</timeseekbackward>
Normal time based jumps

Description goes here

<timeseekforwardbig>600</timeseekforwardbig>
<timeseekbackwardbig>-600</timeseekbackwardbig>
Big time based jumps

Description goes here

<percentseekforward>2</percentseekforward>
<percentseekbackward>-2</percentseekbackward>
Normal percentage based jumps

Description goes here

<percentseekforwardbig>10</percentseekforwardbig>
<percentseekbackwardbig>-10</percentseekbackwardbig>
Big percentage based jumps

Description goes here

Examples

See also