IkeTaylor11 60 Posted August 24, 2019 Share Posted August 24, 2019 I am utilizing tasker to launch an app when specific buttons are pressed on my remote. Tasker has the ability to launch app activities. For instance the Live Channels app has a lot of activities built into it to go directly to a particular function in the app when launched (see attached photo). Currently Emby only has 1 activity that can be launched (startup.StartupActivity). Can you add more activities for the items below? On Now - same as the Live TV channel shortcut on the home screen, this would open Emby directly into the On Now screen Live TV Guide - same as the Live TV channel shortcut on the home screen, this would open Emby directly into the Guide screen Recordings - same as the Live TV channel shortcut on the home screen, this would open Emby directly into the Recordings screen Link to comment Share on other sites More sharing options...
ebr 14902 Posted August 25, 2019 Share Posted August 25, 2019 Possible for the future. Thanks. Link to comment Share on other sites More sharing options...
IkeTaylor11 60 Posted August 25, 2019 Author Share Posted August 25, 2019 Possible for the future. Thanks. I did a little more digging and I could do the same thing with intents. From what I understand, the programs on the home screen channel use intents to call particular functions of the app. Could you publish the intents used for the programs used in the Live TV channel? Then I can use those to launch the functions directly and no other coding needs to happen. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
ebr 14902 Posted August 25, 2019 Share Posted August 25, 2019 I believe this is what you'll need: <data android:scheme="embyatv" android:host="tv.emby.embyatv" android:path="/direct/[numeric code - see below]" /> Where the numeric code is one of: public static final int LIVE_TV_GUIDE_OPTION_ID = 1000; public static final int LIVE_TV_RECORDINGS_OPTION_ID = 2000; public static final int LIVE_TV_SCHEDULE_OPTION_ID = 4000; public static final int LIVE_TV_SERIES_OPTION_ID = 5000; public static final int LIVE_TV_ONNOW_OPTION_ID = 6000; So, for instance, for the guide the path would be "/direct/1000" Link to comment Share on other sites More sharing options...
IkeTaylor11 60 Posted August 25, 2019 Author Share Posted August 25, 2019 @@ebr, thank you for the info. Would you be able to help with building the send intent? I am struggling on what goes where inside the intent builder. The options are listed below. Action: Cat: Mime Type: Data: Extra: Extra: Extra: Package: Class: Target: (drop down menu with these options: Broadcast Reciever, Activity, Service) Link to comment Share on other sites More sharing options...
ebr 14902 Posted August 25, 2019 Share Posted August 25, 2019 Package = tv.emby.embyatv Action (I think) = view Data (I think will be the path I specified above) = /direct/1000 Target = Activity Link to comment Share on other sites More sharing options...
IkeTaylor11 60 Posted August 25, 2019 Author Share Posted August 25, 2019 Package = tv.emby.embyatv Action (I think) = view Data (I think will be the path I specified above) = /direct/1000 Target = Activity I tried that and a bunch of other variations. Can’t seem to get it to do anything. Seems I’m not smart enough to make this actually work. Maybe somebody else will chime in with some insight. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now