- Posts: 248
- Thank you received: 33
Power Off command fails
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
2 years 1 month ago #2706
by bowlingbeeg
Replied by bowlingbeeg on topic Power Off command fails
Thanks Dave, sorry to hear you're still in the hotel. I tried the new driver but I'm still seeing the active player being set to -1. I even recreated the device and it still tried to use the -1 playerid. It's not a huge deal if you can't get to it right now, I can work around it by using the shutdown command directly or by using the GUI to play/pause/stop until you get back.
20/06/2024 15:05:45.05 · DEBUG · Server.doCommand - AV|64~Power~Off from dashboard-fx-l367
20/06/2024 15:05:45.05 · DEBUG · Kodi.doCommand - Cmd=[64~Power~Off] Client=[dashboard-fx-l367]
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","method":"Player.Stop","params":{"playerid":-1},"id":"Player.Stop"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"error":{"code":-32602,"data":{"method":"Player.Stop","stack":{"message":"Value between 0 (inclusive) and 2 (inclusive) expected but -1 received","name":"playerid","type":"integer"}},"message":"Invalid params."},"id":"Player.Stop","jsonrpc":"2.0"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Application.GetProperties","method":"Application.GetProperties","params":{"properties":["volume","muted"]} ,"id":"Application.GetProperties"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Player.GetActivePlayers","method":"Player.GetActivePlayers","id":"Player.GetActivePlayers"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Application.GetProperties","jsonrpc":"2.0","result":{"muted":false,"volume":100}}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Player.GetActivePlayers","jsonrpc":"2.0","result":[]}
20/06/2024 15:05:45.05 · DEBUG · Server.doCommand - AV|64~Power~Off from dashboard-fx-l367
20/06/2024 15:05:45.05 · DEBUG · Kodi.doCommand - Cmd=[64~Power~Off] Client=[dashboard-fx-l367]
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","method":"Player.Stop","params":{"playerid":-1},"id":"Player.Stop"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"error":{"code":-32602,"data":{"method":"Player.Stop","stack":{"message":"Value between 0 (inclusive) and 2 (inclusive) expected but -1 received","name":"playerid","type":"integer"}},"message":"Invalid params."},"id":"Player.Stop","jsonrpc":"2.0"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Application.GetProperties","method":"Application.GetProperties","params":{"properties":["volume","muted"]} ,"id":"Application.GetProperties"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Player.GetActivePlayers","method":"Player.GetActivePlayers","id":"Player.GetActivePlayers"}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Application.GetProperties","jsonrpc":"2.0","result":{"muted":false,"volume":100}}
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Player.GetActivePlayers","jsonrpc":"2.0","result":[]}
Please Log in to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 2 weeks ago #2949
by bowlingbeeg
Replied by bowlingbeeg on topic Power Off command fails
Hi Dave - Wondering if you ever got a chance to go back and look at this?
Please Log in to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 2 weeks ago #2951
by davep
Replied by davep on topic Power Off command fails
I've added some more logging into the Kodi driver please install that version and test with verbose logging turned on in the Kodi driver.
There is nothing in the driver that will be setting the activeplayerid to -1. If it still is I'll need to look at the event logs.
There is nothing in the driver that will be setting the activeplayerid to -1. If it still is I'll need to look at the event logs.
Please Log in to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 2 weeks ago #2968
by bowlingbeeg
Replied by bowlingbeeg on topic Power Off command fails
Thanks Dave! I just tested the new version out and things are working. I'm not seeing the -1 player ID in the traces anymore and all of the commands to play/pause/stop/etc work now.
I did notice that the only thing that the AV|xx~Power~Off command does is issue a Player.Stop command to kodi. I'm not sure if that's what you are intending the power off command to do or not. Personally I shutdown my kodi box when I'm not using it so I'll just use the AV|xx~Shutdown command but thought I'd mention it in case the power off command is supposed to do something else.
I did notice that the only thing that the AV|xx~Power~Off command does is issue a Player.Stop command to kodi. I'm not sure if that's what you are intending the power off command to do or not. Personally I shutdown my kodi box when I'm not using it so I'll just use the AV|xx~Shutdown command but thought I'd mention it in case the power off command is supposed to do something else.
Please Log in to join the conversation.
Time to create page: 0.176 seconds