Kodi Community Forum

Full Version: PlayStation Remote Play client for Kodi's RetroPlayer to remotely stream PS4/PS5?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Do you think that the C-library from Chiaki could be made into a PlayStation Remote Play stream/game-client addon for Kodi's RetroPlayer?

https://git.sr.ht/~thestr4ng3r/chiaki

FYI, there was work started on a headless-stream patch for Chiaki which might be of relative use for a Libretro API and Kodi game client port?

https://github.com/thestr4ng3r/chiaki/pull/278

https://github.com/ritiek/chiaki/tree/headless-stream

Note that Chiaki by thestr4ng3r was previously hosted on GitHub at https://github.com/thestr4ng3r/chiaki/ but was moved to sourcehut Git).

Chiaki also changed the license from standard GPLv3 to AGPLv3 on the 27th of December 2020 so all its code before that date is still GPLv3.

There are as well alternative forks of Chiaki (like one from Egoistically) which fixes some things or add features and functions not in upstream:
 
The goal would be remote game streaming of PlayStation 4 / PlayStation 5 over a local network within your home (or over the internet).

Since game-streaming do not use a lot of CPU or RAM it should be possible to stream PS4/PS5 to even an older Raspberry Pi or ODROID. 

https://en.wikipedia.org/wiki/Remote_Play

Chiaki is GPLv3 licensed and emulate the PS Remote Play client for remotely streaming/controlling your PS4/PS5 console display/control:

https://remoteplay.dl.playstation.net/re...y/lang/en/

Chiaki reverse-engineered PS Remote Play protocol and the upstream project is not very active but considered feature complete and stable.

PS: Remote Play is a mandatory feature on all PS4/PS5 games, except for games utilizing peripherals such as PlayStation Move or PS VR.
I guess it could work similarly to the previous "NVIDIA GameStream in Kodi" project?

http://forum.kodi.tv/showthread.php?tid=220421

http://forum.kodi.tv/showthread.php?tid=220965

No longer being developed but there was Moonlight client for Kodi Game API:

https://github.com/kodi-game/game.moonlight

PS: Off-topic but upstream Moonlight (formerly Limelight) project is still very active:

https://moonlight-stream.org
pyremoteplay 0.2.0 on pypi org or GitHub.. this may be one that will work.
(2022-03-02, 02:48)LittleBear1981 Wrote: [ -> ]pyremoteplay 0.2.0 on pypi org or GitHub.. this may be one that will work.

That pyremoteplay library you mention is also based on the C/C++ project Chiaki. See pyremoteplay description in https://github.com/ktnrg45/pyremoteplay/.../README.md

"This project provides an API to programmatically connect to and control Remote Play hosts (Only PS4 Currently). In addition it includes an optional GUI, allowing to view the live stream and control the host through keyboard/mouse input. This library is based on the C/C++ project Chiaki."

I suggested using code from Chiaki because it is written in the C programming language and all of the existing Kodi Game add-ons for Kodi's Game API are written in C and/or C++ programming languages as it is a native C API based on and fully compatible with the libretro API. As the request goal would be to have a real Kodi Game add-on for Kodi's Game API for native integration into the Kodi application and its GUI/skins.

My guess is that it would probably be the libretro API a developer would really want to target for such game client addon as that would take advantage of all the existing infrastructure inside Kodi, (and as a bonus an addon made for the libretro API could also be back-ported to the upstream RetroArch project which could help get more developers involved as it, in turn, is used in a multitude of gaming-oriented distributions).

https://kodi.wiki/view/Libretro

https://kodi.wiki/view/Game_development

https://kodi.wiki/view/Game_add-ons

https://www.libretro.com/index.php/api/

https://forum.kodi.tv/showthread.php?tid=224328

https://github.com/orgs/kodi-game/repositories