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

Question. Is there a way to open a deep link? #83

Open
Pinball3D opened this issue Sep 26, 2022 · 2 comments
Open

Question. Is there a way to open a deep link? #83

Pinball3D opened this issue Sep 26, 2022 · 2 comments
Assignees

Comments

@Pinball3D
Copy link

I need to be able to open deep links with this library. Is this possible? if so, how?

@jcarbaugh jcarbaugh self-assigned this Apr 22, 2023
@jcarbaugh
Copy link
Owner

Hello! I think so, but it depends whether the specific app supports it and you know the correct metadata about the content https://sdkdocs-archive.roku.com/Deep-Linking_4264420.html The contentId and mediaType parameters can be passed to the launch method.

roku.launch(123, {"contentId": 987, "mediaType": "movie"})

@jpoet
Copy link

jpoet commented Jun 21, 2024

Hi.

This works:

curl -d '' "http://192.168.1.22:8060/launch/195316?contentId=g5Wdv42YrFI&mediaType=live"`

But this does not:

roku = Roku('192.168.1.22')
roku.launch(195316, {"contentId": "g5Wdv42YrFI", "mediaType": "live"})
  File "/usr/local/lib/python3.12/site-packages/roku/core.py", line 299, in launch
    if app.roku and app.roku != self:
       ^^^^^^^^
AttributeError: 'int' object has no attribute 'roku'

Am I missing a step?

TIA

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

3 participants