2017-10-28, 23:06
@dantist: In fact, I'm sure what I've said above is what is happening.
In #0914 (which has fully working JSON-RPC without broken version numbers present in current builds), run "texturecache.py monitor" in one ssh window, and in a second ssh window get ready to run "texturecache.py status" (this executes the "Player.GetActivePlayers" query), and then in Kodi start playback of a video.
You will see the "Player.OnPlay" notification in the "monitor" window, and if you run the "status" query as soon as possible after the notification is received you will see:
ie. there is no active player, even though a "Player.OnPlay" notification has been issued and received, and it's this that causes Hyperion to fail because it doesn't believe there is an active video player.
If you now wait until the video is playing (video frames being rendered on display etc.) and re-run the "status" command you will see that there is an active video player:
Repeat the above in #0913 and there will always be an active player in Kodi by the time the "Player.OnPlay" notification is issued/received.
A trac ticket is the best way to progress this.
In #0914 (which has fully working JSON-RPC without broken version numbers present in current builds), run "texturecache.py monitor" in one ssh window, and in a second ssh window get ready to run "texturecache.py status" (this executes the "Player.GetActivePlayers" query), and then in Kodi start playback of a video.
You will see the "Player.OnPlay" notification in the "monitor" window, and if you run the "status" query as soon as possible after the notification is received you will see:
Code:
Current Profile : Master user
Scanning Music : No
Scanning Video : No
ScreenSaver Active : No
Suspend Supported : Yes
Idle Timer Enabled : No
System Idle > 600s : No
PVR Enabled : No
Player : None
ie. there is no active player, even though a "Player.OnPlay" notification has been issued and received, and it's this that causes Hyperion to fail because it doesn't believe there is an active video player.
If you now wait until the video is playing (video frames being rendered on display etc.) and re-run the "status" command you will see that there is an active video player:
Code:
Current Profile : Master user
Scanning Music : No
Scanning Video : No
ScreenSaver Active : No
Suspend Supported : Yes
Idle Timer Enabled : No
System Idle > 600s : No
PVR Enabled : No
Player : Video
Activity : Unknown
Title : kodi.mp4
Progress : 00:01:27 (4.46%, 00:31:14 remaining)
Repeat the above in #0913 and there will always be an active player in Kodi by the time the "Player.OnPlay" notification is issued/received.
A trac ticket is the best way to progress this.