supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
261 stars 50 forks source link

Help with Launch application API #100

Closed tkn1234 closed 6 months ago

tkn1234 commented 7 months ago

For the class - class ApplicationControl(WebOSControlBase) I'm trying to start the media player (app id - com.webos.app.mediadiscovery) but I can't find a reference to how to send the destination I want to play (its a network based media player) or what the TV can 'see' etc.

I've found several LG API's, I'm not sure which is the correct one (but they're poorly documented) if you can point me to the right API to model, I can update the code and submit a pull request that enhances that function.

Appreciate any help you can give! Great library!

supersaiyanmode commented 6 months ago

Hi, unfortunately, the "destination" is something that the application must accept as a parameter and honor. It is passed as a part of application launch (see README.md) -- and as such it is outside the scope of this library which doesn't give specific apps any special treatment. If you can figure out the actual parameter, you can pass it via contentId and params arguments of app.launch() -- unless ofcourse these parameters are insufficient and need to change.