iPad/Confluence/advancedsettings.xml: Skip ahead 30 seconds?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Fmstrat Offline
Junior Member
Posts: 14
Joined: Feb 2011
Reputation: 1
Post: #1
Hi all,

In the comments on the iPad post, someone directed me to create an advancedsettings.xml file to enable a quick-skip. I've not had luck getting this working, and I'm not sure if it's due to the advancedsettings.xml, or with the theme not having quick-skip buttons enabled.

This is my advancedsettings.xml file:

Quote:<advancedsettings>
<video>
<smallstepbackseconds>5</smallstepbackseconds> <!-- Length of the small skip back (normally the BACK button) when playing a video -->
<usetimeseeking>true</usetimeseeking> <!-- Whether to use time based or percentage based seeking. -->
<timeseekforward>30</timeseekforward> <!-- Time to seek forward in seconds when doing a short seek. Defaults to 30. -->
<timeseekbackward>-30</timeseekbackward> <!-- Time to seek backward in seconds when doing a short seek. Defaults to -30. -->
<timeseekforwardbig>300</timeseekforwardbig> <!-- Time to seek forward in seconds when doing a long seek. Defaults to 600 (10 minutes). -->
<timeseekbackwardbig>-300</timeseekbackwardbig> <!-- Time to seek forward in seconds when doing a long seek. Defaults to -600 (10 minutes). -->
</video>
</advancedsettings>

I have placed it in every user folder and in the main folder where the other xml files, like guisettings.xml, are located. However, when viewing a video the buttons for Fast Forward and Rewind still speed up and reverse the video, when I want them to skip forward 30 seconds and back 10.

Any ideas?

Thanks,
B.
find quote
jd2157 Offline
Fan
Posts: 643
Joined: Jan 2011
Reputation: 0
Location: Nova Scotia
Post: #2
Fmstrat Wrote:Hi all,

In the comments on the iPad post, someone directed me to create an advancedsettings.xml file to enable a quick-skip. I've not had luck getting this working, and I'm not sure if it's due to the advancedsettings.xml, or with the theme not having quick-skip buttons enabled.

This is my advancedsettings.xml file:

I have placed it in every user folder and in the main folder where the other xml files, like guisettings.xml, are located. However, when viewing a video the buttons for Fast Forward and Rewind still speed up and reverse the video, when I want them to skip forward 30 seconds and back 10.

I'd take a look in the /private/var/mobile/Library/Preferences/xbmc.log file. It there's issues with your /private/var/mobile/Library/Preferences/XBMC/advancedsettings.xml they should show up in there... mine did... I resolved them but still didn't get the behavior for skipping that I'd tried to configure.

I need to spend more time to figure out if I'm missing something or if the settings just aren't been picked up by XBMC since it's not implemented yet or a bug, etc.
find quote
jd2157 Offline
Fan
Posts: 643
Joined: Jan 2011
Reputation: 0
Location: Nova Scotia
Post: #3
This is working for me on the atv2 (changed small skip to 15 sec). Make sure you restart XBMC after making the changes.
file: /private/var/mobile/Library/Preferences/XBMC/userdata/advancedsettings.xml

Code:
<advancedsettings>
  <video>
  <timeseekforward>15</timeseekforward>  <!-- Time to seek forward in sec - short seek.  Defaults to 30. -->
  <timeseekbackward>-15</timeseekbackward>  <!-- Time to seek backward in sec - short seek.  Defaults to -30. -->
  <timeseekforwardbig>600</timeseekforwardbig>  <!-- Time seek forward in sec- long seek. Def 600 (10 min). -->
  <timeseekbackwardbig>-600</timeseekbackwardbig>  <!-- Time seek back in sec - long seek. Def to -600 (10 min). -->
  </video>
</advancedsettings>
find quote
Fmstrat Offline
Junior Member
Posts: 14
Joined: Feb 2011
Reputation: 1
Post: #4
Thanks for all the help thus far. Unfortunately, that didn't work either.

I actually think the problem has to do with the way the theme is set up. The on-screen buttons are for Fast Forward and Next, not for Skip. While I know MythTV theming back and forth, I'm completely unaware of how XBMC works. Smile

Thanks,
B.
find quote
Fmstrat Offline
Junior Member
Posts: 14
Joined: Feb 2011
Reputation: 1
Post: #5
A little more info. I found this file:

/private/var/stash/Applications.pwn/XBMC.app/XBMCData/XBMCHome/addons/skin.confluence/720p/VideoOSD.xml

which contains:

Code:
<control type="button" id="604">
    <posx>200</posx>
    <posy>0</posy>
    <width>50</width>
    <height>50</height>
    <label>31353</label>
    <font>-</font>
    <texturefocus>OSDForwardFO.png</texturefocus>
    <texturenofocus>OSDForwardNF.png</texturenofocus>
    <onleft>603</onleft>
    <onright>605</onright>
    <onup>703</onup>
    <ondown>703</ondown>
    <onclick>PlayerControl(Forward)</onclick>
</control>

Is there a command like PlayerControl(SmallSeekForward) that I could replace "Forward" with?

Thanks,
B.
find quote
Fmstrat Offline
Junior Member
Posts: 14
Joined: Feb 2011
Reputation: 1
Post: #6
Well, for anyone following this thread, yes, I'm talking to myself. But I found the answer in the skin documentation. If you're looking to accomplish what I wanted, I.E. make the Previous, Rewind, Fast Forward, and Next buttons into Skip back 5 minutes, Skip back 10 seconds, Skip forward 10 seconds, Skip forward 5 minutes, use the following info in the following files:

/private/var/stash/Applications.pwn/XBMC.app/XBMCData/XBMCHome/addons/skin.confluence/720p/VideoOSD.xml
Code:
...
...
            <control type="group" id="100">
                <posx>490</posx>
                <posy>40</posy>
                <control type="button" id="600">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>210</label>
                    <font>-</font>
                    <texturefocus>OSDPrevTrackFO.png</texturefocus>
                    <texturenofocus>OSDPrevTrackNF.png</texturenofocus>
                    <onleft>605</onleft>
                    <onright>601</onright>
                    <onup>701</onup>
                    <ondown>701</ondown>
                    <onclick>PlayerControl(BigSkipBackward)</onclick>
                </control>
                <control type="button" id="601">
                    <posx>50</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>31354</label>
                    <font>-</font>
                    <texturefocus>OSDRewindFO.png</texturefocus>
                    <texturenofocus>OSDRewindNF.png</texturenofocus>
                    <onleft>600</onleft>
                    <onright>602</onright>
                    <onup>702</onup>
                    <ondown>702</ondown>
                    <onclick>PlayerControl(SmallSkipBackward)</onclick>
                </control>
                <control type="togglebutton" id="602">
                    <posx>100</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>31351</label>
                    <altlabel>208</altlabel>
                    <font>-</font>
                    <texturefocus>OSDPauseFO.png</texturefocus>
                    <texturenofocus>OSDPauseNF.png</texturenofocus>
                    <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
                    <alttexturefocus>OSDPlayFO.png</alttexturefocus>
                    <alttexturenofocus>OSDPlayNF.png</alttexturenofocus>
                    <onleft>601</onleft>
                    <onright>603</onright>
                    <onup>702</onup>
                    <ondown>702</ondown>
                    <onclick>PlayerControl(Play)</onclick>
                </control>
                <control type="button" id="603">
                    <posx>150</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>31352</label>
                    <font>-</font>
                    <texturefocus>OSDStopFO.png</texturefocus>
                    <texturenofocus>OSDStopNF.png</texturenofocus>
                    <onleft>602</onleft>
                    <onright>604</onright>
                    <onup>703</onup>
                    <ondown>703</ondown>
                    <onclick>PlayerControl(Stop)</onclick>
                </control>
                <control type="button" id="604">
                    <posx>200</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>31353</label>
                    <font>-</font>
                    <texturefocus>OSDForwardFO.png</texturefocus>
                    <texturenofocus>OSDForwardNF.png</texturenofocus>
                    <onleft>603</onleft>
                    <onright>605</onright>
                    <onup>703</onup>
                    <ondown>703</ondown>
                    <onclick>PlayerControl(SmallSkipForward)</onclick>
                </control>
                <control type="button" id="605">
                    <posx>250</posx>
                    <posy>0</posy>
                    <width>50</width>
                    <height>50</height>
                    <label>209</label>
                    <font>-</font>
                    <texturefocus>OSDNextTrackFO.png</texturefocus>
                    <texturenofocus>OSDNextTrackNF.png</texturenofocus>
                    <onleft>604</onleft>
                    <onright>600</onright>
                    <onup>704</onup>
                    <ondown>704</ondown>
                    <onclick>PlayerControl(BigSkipForward)</onclick>
                </control>
            </control>
...
...

/private/var/mobile/Library/Preferences/XBMC/userdata/advancedsettings.xml
(You may need this in the profile directories if you're using profiles, too)
Code:
<advancedsettings>
  <video>
  <timeseekforward>10</timeseekforward>  <!-- Time to seek forward in sec - short seek.  Defaults to 30. -->
  <timeseekbackward>-5</timeseekbackward>  <!-- Time to seek backward in sec - short seek.  Defaults to -30. -->
  <timeseekforwardbig>300</timeseekforwardbig>  <!-- Time seek forward in sec- long seek. Def 600 (10 min). -->
  <timeseekbackwardbig>-300</timeseekbackwardbig>  <!-- Time seek back in sec - long seek. Def to -600 (10 min). -->
  </video>
</advancedsettings>

Thanks,
B.
find quote
kiskoul Offline
Junior Member
Posts: 1
Joined: Jan 2011
Reputation: 0
Post: #7
Thanks for the tip Fmstrat. Works like a charm.
find quote
alsaadie Offline
Junior Member
Posts: 13
Joined: Feb 2011
Reputation: 0
Post: #8
jd2157 Wrote:This is working for me on the atv2 (changed small skip to 15 sec). Make sure you restart XBMC after making the changes.
file: /private/var/mobile/Library/Preferences/XBMC/userdata/advancedsettings.xml

Code:
<advancedsettings>
  <video>
  <timeseekforward>15</timeseekforward>  <!-- Time to seek forward in sec - short seek.  Defaults to 30. -->
  <timeseekbackward>-15</timeseekbackward>  <!-- Time to seek backward in sec - short seek.  Defaults to -30. -->
  <timeseekforwardbig>600</timeseekforwardbig>  <!-- Time seek forward in sec- long seek. Def 600 (10 min). -->
  <timeseekbackwardbig>-600</timeseekbackwardbig>  <!-- Time seek back in sec - long seek. Def to -600 (10 min). -->
  </video>
</advancedsettings>

@jd2157
The short seek is totally working for me in my Apple TV 2g, thanks bro, but how do i get the long seek using the apple remote?
find quote
crimsontwo Offline
Junior Member
Posts: 10
Joined: Feb 2011
Reputation: 0
Post: #9
alsaadie Wrote:@jd2157
The short seek is totally working for me in my Apple TV 2g, thanks bro, but how do i get the long seek using the apple remote?

Did you find out how? Can't find the shortcut.
find quote
jd2157 Offline
Fan
Posts: 643
Joined: Jan 2011
Reputation: 0
Location: Nova Scotia
Post: #10
alsaadie Wrote:@jd2157
The short seek is totally working for me in my Apple TV 2g, thanks bro, but how do i get the long seek using the apple remote?

The piece that's probably missing is the /private/var/mobile/Library/Preferences/XBMC/userdata/keymaps/joystick.AppleRemote.xml file. You define the BigStepForward button here and define it's time in advancedsettings.xml. Mine looks like this, it's not perfect but should get you started:

Code:
<keymap>
<FullscreenVideo>
   <joystick name="AppleRemote">
      <!-- up             --> <button id="1">BigStepForward</button>
      <!-- down         -->    <button id="2">BigStepBack</button>
      <!-- left           --> <button id="3">StepBack</button>
      <!-- right          --> <button id="4">StepForward</button>
      <!-- select         --> <button id="5">OSD</button>
      <!-- menu           --> <button id="6">Stop</button>
      <!-- select (long)  --> <button id="7">ShowSubtitles</button>
      <!-- menu (long)    --> <button id="8">XBMC.ShutDown()</button>
      <!-- right (long)   --> <button id="10">FastForward</button>
      <!-- left (long)    --> <button id="11">Rewind</button>
      <!-- play           --> <button id="12">Pause</button>
      <!-- play (long)    --> <button id="13">CodecInfo</button>
   </joystick>
</FullscreenVideo>
</keymap>
find quote