/// <summary> /// Seek through the playing item /// </summary> public async Task <XBMCRPC.Player.SeekResponse> Seek(XBMCRPC.Player.Position.Time value, int playerid = 0) { var jArgs = new JObject(); if (playerid != null) { var jpropplayerid = JToken.FromObject(playerid, _client.Serializer); jArgs.Add(new JProperty("playerid", jpropplayerid)); } if (value != null) { var jpropvalue = JToken.FromObject(value, _client.Serializer); jArgs.Add(new JProperty("value", jpropvalue)); } return(await _client.GetData <XBMCRPC.Player.SeekResponse>("Player.Seek", jArgs)); }
public SeekResponse Seek2(int playerid = 0, XBMCRPC.Player.Position.Time value = null) { var jArgs = new JObject(); if (playerid != null) { var jpropplayerid = JToken.FromObject(playerid, _client.Serializer); jArgs.Add(new JProperty("playerid", jpropplayerid)); } if (value != null) { var jpropvalue = JToken.FromObject(value, _client.Serializer); jArgs.Add(new JProperty("value", jpropvalue)); } var jRet = _client.GetData <SeekResponse>("Player.Seek", jArgs); return(jRet); }