mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
70_XBMC: changed seek parameter format
git-svn-id: https://svn.fhem.de/fhem/trunk@12523 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3d2d2f1544
commit
b32713a97c
@ -880,7 +880,7 @@ sub XBMC_Set($@)
|
||||
return XBMC_Set_Repeat($hash, @args);
|
||||
}
|
||||
elsif($cmd eq 'seek') {
|
||||
return XBMC_Set_Seek($hash, $args[0], $args[1], $args[2], @args);
|
||||
return XBMC_Set_Seek($hash, $args[0], @args);
|
||||
}
|
||||
|
||||
#RPC referring to the Input http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Input
|
||||
@ -1160,13 +1160,14 @@ sub XBMC_Set_Stop($@)
|
||||
|
||||
sub XBMC_Set_Seek($@)
|
||||
{
|
||||
my ($hash,$hours,$minutes,$seconds,$player) = @_;
|
||||
my ($hash,$position,$player) = @_;
|
||||
my ($hours, $minutes, $seconds) = split(/:/, $position);
|
||||
my $obj = {
|
||||
'method' => 'Player.Seek',
|
||||
'params' => {
|
||||
'value' => {
|
||||
'seconds' => $seconds + 0,
|
||||
'minutes' => $minutes +0 ,
|
||||
'minutes' => $minutes + 0 ,
|
||||
'hours' => $hours + 0
|
||||
},
|
||||
'playerid' => 0 #will be replaced with the active player
|
||||
@ -1575,7 +1576,7 @@ sub XBMC_HTTP_Request($$@)
|
||||
<li><b>openepisodeid <path></b> - Plays an episode by id</li>
|
||||
<li><b>openchannelid <path></b> - Switches to channel by id</li>
|
||||
<li><b>addon <addonid> <parametername> <parametervalue></b> - Executes addon with one Parameter, for example set xbmc addon script.json-cec command activate</li>
|
||||
<li><b>seek <hours> <minutes> <seconds></b> - seek to the specified time</li>
|
||||
<li><b>seek <hh:mm:ss></b> - seek to the specified time</li>
|
||||
</ul>
|
||||
<br>Input related commands:<br>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user