Jump to content

Default server?


gzbruno

Recommended Posts

gzbruno

Hello. I downloded the roku sdk form https://github.com/MediaBrowser/Emby.Roku

 

Is there a way to configure the app to conect directly to my sever ip address? it would discard the token part and it wouldnt allow the user to enter an ip address.

 

I just want the app to connect to the server and then the user to enter username and password, so the user wouldnt be able to select from a user list, just to enter manually the username.

 

Is it possible? anybody could point me in the right direction?

 

thank you

Link to comment
Share on other sites

How well do you know the roku sdk? Also know, the roku sdk the public app is based on, is on the soon to be deprecated sdk1.0. There is no public open source version of the private beta app. There is also the sideloadable version of the blue neon themed roku app you can hack changes into.

 

How familiar are you with brightscript? What you want to do, would be to have a hardcoded server ip in the code, as a server ip has to come from somewhere. Then just always go with that as a sever ip, no more selections allowed. Then remove the ability for people to use "select server" on the home screen, by commenting out the select server buton code so the user cant choose it. Dont need to remove the code that reacts to the button really since that code never runs anyways. This is all doable. How familiar are you with the emby roku code?

 

I can walk you through how to do this so you understand better. Just need to know your level of skill.

Edited by speechles
Link to comment
Share on other sites

gzbruno

How well do you know the roku sdk? Also know, the roku sdk the public app is based on, is on the soon to be deprecated sdk1.0. There is no public open source version of the private beta app. There is also the sideloadable version of the blue neon themed roku app you can hack changes into.

 

How familiar are you with brightscript? What you want to do, would be to have a hardcoded server ip in the code, as a server ip has to come from somewhere. Then just always go with that as a sever ip, no more selections allowed. Then remove the ability for people to use "select server" on the home screen, by commenting out the select server buton code so the user cant choose it. Dont need to remove the code that reacts to the button really since that code never runs anyways. This is all doable. How familiar are you with the emby roku code?

 

I can walk you through how to do this so you understand better. Just need to know your level of skill.

 

 

Thank you.

This blue themed roku app has the same features?

 

Not very familiar, im very familiar with php, but ive downloaded some roku sdk examples like the liniking and registration and get them to work. If you could just tell me what lines to replace? i think i need to set up a variable in the main.brs such as 

m.serverip = "182.15.245.14" 'server ip address

and erase the lookup functions, to make believe the other functions that the server is already registered. the server will have a static ip so i guess it wont be a problem, only if the server can connect show an error message like "Unable to connect to server, please check your internet connection" 

 

Anyways, as i said i would be very grateful as ive been the past 3 weeks looking for a nice roku channel.

Link to comment
Share on other sites

  • 2 weeks later...
gzbruno

How well do you know the roku sdk? Also know, the roku sdk the public app is based on, is on the soon to be deprecated sdk1.0. There is no public open source version of the private beta app. There is also the sideloadable version of the blue neon themed roku app you can hack changes into.

 

How familiar are you with brightscript? What you want to do, would be to have a hardcoded server ip in the code, as a server ip has to come from somewhere. Then just always go with that as a sever ip, no more selections allowed. Then remove the ability for people to use "select server" on the home screen, by commenting out the select server buton code so the user cant choose it. Dont need to remove the code that reacts to the button really since that code never runs anyways. This is all doable. How familiar are you with the emby roku code?

 

I can walk you through how to do this so you understand better. Just need to know your level of skill.

 

I downloaded that version and did all the adaptations acording to my needs. But today i ran the telnet debug for the first time to check and found out the following 


------ Running dev 'Platino TV' main ------
BRIGHTSCRIPT: WARNING: roGridScreen: This component is deprecated: pkg:/source/V                                              iewController.brs(66)
BRIGHTSCRIPT: WARNING: roOneLineDialog: This component is deprecated: pkg:/sourc                                              e/ViewController.brs(242)
BRIGHTSCRIPT: WARNING: roMessageDialog: This component is deprecated: pkg:/sourc                                              e/DialogUtils.brs(61)
BRIGHTSCRIPT: WARNING: roListScreen: This component is deprecated: pkg:/source/ListScreen.brs(14)
^CNote: GC - Found 233 orphaned objects (objects in a circular ref loop).

So maybe this version will be also deprecated. 

 

 

Here is the debug from the emby roku master

--2.25
Anamorphic support: true
BRIGHTSCRIPT: WARNING: roGridScreen: This component is deprecated: pkg:/source/ViewController.brs(60)
Server.info: listening on 0.0.0.0:8324
Using broadcast address 192.168.1.255
Send To Address: 192.168.1.255:7359 / 192.168.1.255:7359
Received Message: {"Address":"xxx","Id":"xxx","Name":"Servidor Prueba 1"}
Found 1 servers
Creating server data cache
Found string in the registry: {"xxx":{"AccessToken":"xxx","UserId":"                                          f88a63144ce4472fa52ddce295ec055a","RemoteAddress":"http://192.155.106.15:8096","LastAccess":"1495062193","remoteaddress":"http                                          ://192.155.106.15:8096","Name":"ubuntu","name":"ubuntu","ManualAddress":"http://192.155.106.15:8096","LocalAddress":"http://19                                          2.155.106.15:8096","localaddress":"http://192.155.106.15:8096","id":"2126ddb40f034f84af184b770d9ae374"},"eb7aeb719b204fa2940cc                                          01796c360ef":{"Name":"Servidor Prueba 1","LocalAddress":"http://192.168.1.78:8096","id":"eb7aeb719b204fa2940cc01796c360ef"}}
Parsed as: roAssociativeArray
Connect returned 0 servers
connectionManagerGetServers returning 2 servers
connectToServers called with 2 servers
Attempting to connect to http://192.155.106.15:8096/emby/system/info/public?format=json
connectInitial returned State of SignedIn
connectInitial returned ConnectionMode of Local
Processing ConnectionResult State of SignedIn
SignedIn Id: 2126ddb40f034f84af184b770d9ae374
SignedIn UserId: f88a63144ce4472fa52ddce295ec055a
SignedIn AccessToken: a1a4bebbccfd4020a68a9f918517fc14
SignedIn Name: ubuntu
SignedIn LocalAddress: http://xxx:8096
SignedIn RemoteAddress: http://xxx:8096
ServerSignIn ManualAddress: http://xxx:8096
Posting capabilities
Pushing screen 1 onto view controller stack - Home
Loading beginning of row 0, Películas
Loading beginning of row 1, Series
Total initial grid load took: 73ms
BRIGHTSCRIPT: WARNING: roMessageDialog: This component is deprecated: pkg:/source/ViewController.brs(1866)
Count loaded is now 3 out of 3
Loaded 3 elements in row 0, now have 3
Count loaded is now 6 out of 6
Loaded 6 elements in row 1, now have 6
Count loaded is now 1 out of 1
Loaded 1 elements in row 2, now have 1

it seems it has less objects that will be deprecated.

Is there an easy way to replace the deprecated functions for the new ones? what are my options here?

Edited by gzbruno
Link to comment
Share on other sites

You're going to have to research roku brightscript api documentation to find out the answer to that, as far as what functions should be used going forward.

Link to comment
Share on other sites

Yes, all of those old Roku objects will cease to be supported next year I believe.  They are moving entirely to Scene Graph.

Link to comment
Share on other sites

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