mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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);
|
return XBMC_Set_Repeat($hash, @args);
|
||||||
}
|
}
|
||||||
elsif($cmd eq 'seek') {
|
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
|
#RPC referring to the Input http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Input
|
||||||
@ -1160,7 +1160,8 @@ sub XBMC_Set_Stop($@)
|
|||||||
|
|
||||||
sub XBMC_Set_Seek($@)
|
sub XBMC_Set_Seek($@)
|
||||||
{
|
{
|
||||||
my ($hash,$hours,$minutes,$seconds,$player) = @_;
|
my ($hash,$position,$player) = @_;
|
||||||
|
my ($hours, $minutes, $seconds) = split(/:/, $position);
|
||||||
my $obj = {
|
my $obj = {
|
||||||
'method' => 'Player.Seek',
|
'method' => 'Player.Seek',
|
||||||
'params' => {
|
'params' => {
|
||||||
@ -1575,7 +1576,7 @@ sub XBMC_HTTP_Request($$@)
|
|||||||
<li><b>openepisodeid <path></b> - Plays an episode by id</li>
|
<li><b>openepisodeid <path></b> - Plays an episode by id</li>
|
||||||
<li><b>openchannelid <path></b> - Switches to channel 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>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>
|
</ul>
|
||||||
<br>Input related commands:<br>
|
<br>Input related commands:<br>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user