Cpasjuste / pplay

315 stars 33 forks source link

[Feature] I am planing to create mobile app for streaming links #79

Open kemalsanli opened 2 years ago

kemalsanli commented 2 years ago

Hello, I am planing to create open source multiplatform app for grabbing video URLs and streaming on ps4.

If its possible can you provide me a api's or some kinda communication.

xfangfang commented 1 year ago

@kemalsanli

I made a DLNA Renderer on the PS4 using Cpasjuste's mpv port, embedded within my homebrew app. You can download the beta version here: https://github.com/xfangfang/wiliwili/actions/runs/6666954491

The entry point is: Settings -> Tools -> DLNA Renderer

Please note that because I couldn't find a way to use multicast on the PS4, DLNA's SSDP (Service Discovery) is implemented using broadcast (port 1900). This might cause some clients to be unable to discover the PS4.

There are two methods for DLNA clients to search for DLNA Renderer. One is to actively send queries to the multicast address 239.255.255.250:1900, and the other is to listen to DLNA Renderer information on the multicast 239.255.255.250:1900.

For DLNA client implementations that support the latter, PS4 can be discovered normally. For clients that only support the former, you can replace 239.255.255.250:1900 with the local broadcast address of port 1900.

~It seems that MPV has some issues on PS4, and there may be crashes when seeking. I set the decoding cache to 0 to alleviate this issue, but it may still exist.~ It's an bug from ffmpeg, fixed it by: https://github.com/xfangfang/wiliwili/pull/214/commits/3c296a04104971f225a43f3e9ffdbb51071eb081