Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

JSON - Player Resume Percentage

$
0
0
Hi

I'm writting an php script that stops the currently played song, and adds temporarily a certain mp3 to the playlist, fades volume out, fades in and start on the temp mp3.
When the temp mp3 has stopped with playing, I would like to resume the previous song with a fade in. (like an urgent message to customers)

Everything is working properly, except that i cannot restart the song at the point where it has been stopped.

I have all the correct variables with the nessesary values: position, playlistid, percentage, ... of the song what was playing.

My json looks like this:

Code:
http://192.168.0.40/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"playlistid":0,"position":3},"options":{"resume":18.023418426514}},"id":"1"}

18.023418426514 is the percentage I got from other json statements.
The result = OK, but it just start playing at 0:00

Does anyone has the same 'problem', or is it just by design and thus not possible?

Thanks in advance!
Wim

Viewing all articles
Browse latest Browse all 84005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>