v18 How to play just a single item from playlist?
#1
Hi,

I'm able to play a decent item from playlist using:

{"jsonrpc": "2.0", "method": "Player.GoTo", "params": {"playerid": self.__player_id, "to": m_index}, "id": 14}

Player is running this item and continues with the next item. How can opt out this behaviour and play just the single item?

I worked around with no luck, by "catching" the notifications from webserver. So im able to run:

Player.stop

at the end of the first item.

But the player runs the next item "immediately" which results in an short artefact from the next item before player stops.

It's possible to configure the breaktime between playlist items being played?
Reply
#2
In addition to my initial post. Following output from log shows websocket notification messages at the end of first playlist item "Film01".
Player stops and starts playing the second item "Film02" instantly:



Message: {"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"id":-1,"type":""},"sender":"xbmc"}}
notification
Message: {"jsonrpc":"2.0","method":"Player.OnStop","params":{"data":{"end":true,"item":{"title":"Film01.mp4","type":"movie"}},"sender":"xbmc"}}
notification
Message: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"Film02.mp4","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
notification
Message: {"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"title":"Film02.mp4","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
notification
Message: {"jsonrpc":"2.0","method":"Player.OnAVStart","params":{"data":{"item":{"title":"Film02.mp4","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}

notification
Reply

Logout Mark Read Team Forum Stats Members Help
How to play just a single item from playlist?0