yumata / lampa-source

GNU General Public License v2.0
197 stars 64 forks source link

Understanding LG TV Subscribe Method #217

Open jaruba opened 4 months ago

jaruba commented 4 months ago

Hi @yumata , I hope you're doing well, I'm the dev lead at Stremio, we talked some years ago on telegram (not sure if you remember)

I was hoping we could get your input on an issue we have in Stremio, the WebOS video player (available at: https://github.com/Stremio/stremio-video/blob/master/src/WebOsVideo/WebOsVideo.js ) uses very similar logic to the Lampa video player.

What we do is:

I've been trying to figure out what the issue is with our implementation for weeks but had no success, so I'm writing you in hopes that you could help us figure it out.

Sometimes the subscribe method fails with {"errorCode":0,"returnValue":false,"errorText":"No Error","mediaId":"<invalid mediaId>"} (retrying seems to fix this though..) other times it fails with {"serviceName":"com.webos.pipeline._2aviVu524UNA9e","returnValue":false,"errorCode":-1,"errorText":"com.webos.pipeline._2aviVu524UNA9e is not running."} (this one sometimes retrieves sourceInfo, but not always) and there are even times where there is no error at all, yet it still does not get sourceInfo

Users say that if they close the stream and start it again a few times, the sourceInfo is retrieved correctly at some point.

What we noticed is that when it does not work at all, the result.bufferRange always shows 0 for details. (it is like it doesn't try to load the video at all)

Here is an example of logs when it does not work: (and had no error)

Screenshot 2024-06-02 at 11 53 12

And here is an example of logs when it does work:

Screenshot 2024-06-02 at 11 52 59

We're really hoping that you could offer some clues on getting this working properly, thanks in advance!