Jump to content

Intents


Go to solution Solved by seanbuff,

Recommended Posts

Torment78
Posted

Hello im trying to use the url emby:// schemes 

But i dont know where or how to set the action.intent to view pls some one exsplain 

seanbuff
Posted
4 hours ago, Torment78 said:

Hello im trying to use the url emby:// schemes 

But i dont know where or how to set the action.intent to view pls some one exsplain 

 

 

Torment78
Posted

@seanbuffi have seen this post but im not able to get emby to react to any intent via browser even got gpt to help making a html that runs it for me but still no luck im missing some thin some where .

intent://item/1234#Intent;scheme=emby;package=com.mb.android;end

here is some of the difrent variations i have tried

seanbuff
Posted
2 minutes ago, Torment78 said:

im not able to get emby to react to any intent via browser

What is it you are trying to achieve exactly? Please share your use case

Torment78
Posted (edited)

@seanbuffIm trying to get homarr to launch the emby app insted off the browser and only way according to them is using deep link 

Edited by Torment78
Torment78
Posted

And according to the internet its should be a simple as emby://item/1234

But f me its not 

 

seanbuff
Posted (edited)
7 minutes ago, Torment78 said:

Im trying to get homarr to launch the emby app insted off the browser and only way according to them is using deep link

Well you're asking about Android intents, which are deep links to start an Android app directly with a specific activity or view (page) -- all within an Android device like phone, or TV device

Isn't Homarr just a browser based Dashboard? I don't see how the two would be related.

Edited by seanbuff
Torment78
Posted

@seanbuffIm using homarr as a home screen on a tablet so all my server stuff is accessible from 1 page but all of them are web based interfaces exsept emby that has a good android app so i wanted to be able to launch the app from that same page 

 

Torment78
Posted

And what i could find was using deep link would be the only solution 

seanbuff
Posted
13 minutes ago, Torment78 said:

Im using homarr as a home screen on a tablet so all my server stuff is accessible from 1 page but all of them are web based interfaces exsept emby that has a good android app so i wanted to be able to launch the app from that same page

Okay that makes more sense, thanks
 

3 minutes ago, Torment78 said:

And what i could find was using deep link would be the only solution

where did you read this?

  • Solution
seanbuff
Posted
58 minutes ago, Torment78 said:

And according to the internet its should be a simple as emby://item/1234

Okay, I just installed Homarr and tested this. It works by opening the Android app on the device directly to the desired item, which is what I think you wanted?

As per the comment that I first linked you, @Luke outlines the format you need:

Quote

"emby://items/{SERVER_ID}/{ITEM_ID}"

So when you create your app in Homarr, your URL should look like this:

image.thumb.png.0f1925d82a5ba0479c304d65186bc874.png

You can get your SERVER_ID and ITEM_ID by selecting an item within the Emby web app and copying the relevant parts from the URL in your browser

eg: https://my.emby.server:8096/emby/web/index.html#!/item?id=7358&serverId=4e42195aedc340exxxxxxxxxxxxxxxxx

  • Like 1
Torment78
Posted

@seanbuffyou are awsome mate .you never going to guess why mine was not working this is what u get when u mess with stuff during night shift i had messed up the copy paste of the server id .

By the way is there a list of working comands .

If u ever think about setting up multi system  streaming and need help setting up voicemeeter/matrix or just want to controll everything over network with midi give me a shout 

  • Like 1
  • 3 weeks later...
Posted
On 6/21/2025 at 2:17 AM, Torment78 said:

@seanbuffyou are awsome mate .you never going to guess why mine was not working this is what u get when u mess with stuff during night shift i had messed up the copy paste of the server id .

By the way is there a list of working comands .

If u ever think about setting up multi system  streaming and need help setting up voicemeeter/matrix or just want to controll everything over network with midi give me a shout 

There aren't really commands at this point other than opening an item, but let us know what you need.

Torment78
Posted (edited)
25 minutes ago, Luke said:

There aren't really commands at this point other than opening an item, but let us know what you need.

Hi thank u for ur response  i was mostly woundering about how i would work if i wanted to open lets say a tv folder called thriller but for a specific user or a movie  genre for a specific user thats the comand list i ment 

Edited by Torment78
  • 1 month later...
Posted
On 7/10/2025 at 11:29 PM, Torment78 said:

Hi thank u for ur response  i was mostly woundering about how i would work if i wanted to open lets say a tv folder called thriller but for a specific user or a movie  genre for a specific user thats the comand list i ment 

Do you have the id's for those things from the server database?

Posted (edited)

Not atm laying in bed with 40c 

But would it be some thing like 

/item/{server id}/item/{user id}/item/{folder id}

And if i wanted just the main page i would just not add the last item

Edited by Torment78
  • 1 month later...
Posted

Try

emby://items/serverid/itemid#Intent;scheme=emby;package=com.mb.android;end

This should open the detail screen for the item.

  • 1 year later...
Charliexyx
Posted
On 11/07/2025 at 05:04, Luke said:

There aren't really commands at this point other than opening an item, but let us know what you need.

Hey @Luke,

what do you think about a button on the loginpage which redirects to the linked item in the app (emby://...), in case that the current URL contains an item Link, e.g.:

https://emby.link-to-my-server.de/web/index.html#!/item?id=1022156&serverId=b66180a86f8a432fb5352883a7a98b92

Button "Open in App" redirecting to "emby://items/b66180a86f8a432fb5352883a7a98b92/1022156"

?

 

Problem:

The Android App cannot register the url "https://emby.link-to-my-server.de/..." after installing the App - this redirect is defined in the App manifest which cannot change. Paypal does this and steam also and it is very handy. But it is only possible because it is always the same host (e.g. paypal.com) but we(emby user) use our own server and the actual URL which has to be registered in the manifest before the app is installed depends on the configured servers DNS. (https://developer.android.com/training/app-links/add-applinks)

So instead we could use the "emby://" Links.

I mean, i probably could manually change your loginpage code in my installation to show the button "open in App" - but then I have to change your App code and I'm not sure if the changes stay after an Emby-Server version update - not sure about this, but it seems to be possible in general:

So my recommendation would be:

Generally add a button "Open in app" when the link contains a referenced item and use the "emby://" scheme for this. Then everyone could simply copy a URL in the browser and share it with their userbase. They are redirected to the loginpage when they use the app and are not logged in in the mobile browser. Then they click the "Open in App" button and then can see the item.

PS: For this to work, In the app a "share" button is missing ^^, should then also be added because the URL can not be copied from within the app (or is it possible?).
-> The share link should be a https:// link, because some apps do not recognize these as clickable links...

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...