Jump to content

Recommended Posts

IkeTaylor11
Posted

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

 

 

 

post-386849-0-83479400-1566682625_thumb.jpg

Posted

Possible for the future.

 

Thanks.

IkeTaylor11
Posted

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

Posted

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"

IkeTaylor11
Posted

@@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)

Posted

Package = tv.emby.embyatv

Action (I think) = view

Data (I think will be the path I specified above) = /direct/1000

Target = Activity

IkeTaylor11
Posted

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

  • 4 years later...
HumanPanda
Posted

If anyone still looking. Figured out the solution here:

Quote

Action: android.intent.action.VIEW
Data: /direct/1000
Package: tv.emby.embyatv
Class: tv.emby.embyatv.StartupActivity

FYI @IkeTaylor11if you are still looking to set this up.

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...