Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIAL startup support #2

Closed
Informatic opened this issue Apr 5, 2021 · 2 comments
Closed

DIAL startup support #2

Informatic opened this issue Apr 5, 2021 · 2 comments

Comments

@Informatic
Copy link
Contributor

Official webOS YouTube app can be started directly from smartphone YouTube app.

By default youtube is hardcoded as youtube.leanback.v4 (?) in DIAL server, but there also seems to be some support for dialAppName (?) property in app manifest.

Either renaming this app as youtube.leanback.v4, playing with dialAppName attribute, or patching the DIAL server altogether (at least for rooted devices) would be great.

@Informatic
Copy link
Contributor Author

Informatic commented Apr 5, 2021

It seems like adding "dialAppName": "youtube" into appInfo.json is enough to get the app launchable via Android YouTube app. webOS app launches to login screen by default (not to a video that was requested to be casted) but this should be easily fixable)

(relevant path: /usr/palm/services/com.webos.service.dial/discovery-server.js)

@Informatic
Copy link
Contributor Author

YouTube app gets launched with contentTarget param that is a https://www.youtube.com/tv?pairingCode=... URL.

Launch params are acessible as a JSON string in window.PalmSystem.launchParams (if not using webostvjs)

App relaunches via DIAL (connecting a mobile app to already running youtube tv app) need to be handled properly: https://webostv.developer.lge.com/develop/code-samples/app-lifecycle/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant