Your Digital Media Has Never Looked So Good

 
askaliuk_didja
Topic Author
Posts: 1
Joined: Wed May 08, 2019 1:09 pm

Help with Roku new deep linking (roInputEvent) requirements

Wed May 08, 2019 1:24 pm

Hi Roku devs,

By some reason I can't catch "roInputEvent" on my device.
My steps:
- added supports_input_launch=1 to manifest file
- uploaded code with debugging print to my device:

else if type(msg) = "roInputEvent" then
     print "====MSG INCOME"
end if

- opened http://devtools.web.roku.com/DeepLinkingTester/, added my device by IP
- my channel ID is "dev"
- trying to send Input event using following URLs:

http://<myip>:8060/input/dev?contentId=34&mediaType=live
or
http://<myip>:8060/input?contentId=34&mediaType=live

- I don't see the debugging print call in device logs. Deep Linking Tester replies "Please install the channel first", but my channel is on a device.
- I didn't try Deep Linking Tester application on a device, because it sends "launch" events only.
- I tried directly with curl and Mac application. Same issue.
- "launch" event works fine

My OS is 9.1.0-4074-55. I also tried on 9.2.0.
Any help is appreciated. Thank you.
 
gomad
Posts: 56
Joined: Wed Nov 29, 2017 4:07 am

Re: Help with Roku new deep linking (roInputEvent) requirements

Thu May 09, 2019 9:04 pm

So as per my understanding, roInputEvent is basically to enable you to deeplink your resources when the app is running/open.
So you'll need to either listen to it in the main event loop or start a task which does the same (there is a sample shared in the docs.https://developer.roku.com/docs/developer-program/discovery/implementing-deep-linking.md#DeepLinking-roInputEvent)

To raise events use cUrl or PostMan (or any other web tool ) to POST this url to the Roku : http://<rokuip>:8060/input?contentId=iidii&mediaType=episode 

Who is online

Users browsing this forum: No registered users and 9 guests