2013-11-12, 23:24
(2011-09-28, 17:40)Montellese Wrote:jasonvp Wrote:Can you please give me an example for "Player.Seek" params (percentage)? It's driving me nuts.
Player.Seek is the best example/usage of the newly supported "union type definition". Player.Seek takes two parameters. The "playerid" (as all the other Player methods do) and a "value" parameter. The "value" parameter can have the following values:
- a number value between 0.0 and 100.0 in which case it is handled as a percentage value to which the player should seek to. So if you pass 50.0 as the value the player will seek to the middle of the file being played.
- a string value which takes one of the following values: "smallforward", "smallbackward", "bigforward", "bigbackward". These values replace the old FooPlayer.Small/BigSkipForward/Backward methods that aren't available anymore.
- an object containg at least one of the following properties: "hours", "minutes", "seconds", "milliseconds". This allows to define a specific time value to which the player will seek to.
Hope this helps.
Hello,
Could someone give me an example of how to use the specific time value? as opposed to a percentage. I have been all over this page and others, http://wiki.xbmc.org/index.php?title=JSO...Percentage , but to avail.
Thank you for your time.