SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Clients Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-13-2016, 03:49 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Android TV Mini-client observations/questions

Hey Sean. I've been using the Mini-client on my Sheild TV since moving to my new house and I can say it has mostly if not totally replaced my need for a dedicated HTPC in almost every aspect.

I do have a few questions about the way the Mini-client works. (this is for server v7.1.9. Not sure if these apply to v9 or not)
  1. Why the need for an on-screen remote (press and hold select) as opposed to a plex like OSD remote (press select)?
  2. Do normal sage commands work with the IR blaster and/or flirc? Like I press stop, playback stops. Things like that.
  3. Have you noticed on the sheild remote that sometimes other apps will begin to play in the backgroud if a certain area is pressed? Also happens if I use a CEC remote and use the play button. Sage doesn't react, but background apps do.
  4. Is it possible for the Mini-client to advertise what it is playing to the Shield or what has been recently recorded? What I mean is, I have a remote that shows me what is currently playing on my sheild. While the Mini-client is playing it thinks the sheild is idle.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.

Last edited by panteragstk; 09-13-2016 at 04:23 PM.
Reply With Quote
  #2  
Old 09-13-2016, 05:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by panteragstk View Post
I do have a few questions about the way the Mini-client works. (this is for server v7.1.9. Not sure if these apply to v9 or not)
  1. Why the need for an on-screen remote (press and hold select) as opposed to a plex like OSD remote (press select)?
  1. My goal would be to not require and OSD at all, and to be honest, it's close with what is there now. I use SageTV daily, and I use the shield remote exclusively. Pause/Play works nicely and skip forward/back works nicely. Some of this requires V9 server since I had to make changes to core sagetv to advertise that a "menu" or "osd" being shown, but the smart remote works quite well. I use gemstone and sure I need to go into the OSD to access the "Menu" or "Options" button but other than that, I never use the OSD controls.

    Quote:
  2. Do normal sage commands work with the IR blaster and/or flirc? Like I press stop, playback stops. Things like that.
  3. I would think so. But I avoided using an IR blaster/Flirc since there is a subtle but noticeable delay. I prefer the Shield remote since it's very responsive.

    Quote:
  4. Have you noticed on the sheild remote that sometimes other apps will begin to play in the backgroud if a certain area is pressed? Also happens if I use a CEC remote and use the play button. Sage doesn't react, but background apps do.
  5. Not sure I understand this... so no I haven't noticed anything like that.

    Quote:
  6. Is it possible for the Mini-client to advertise what it is playing to the Shield or what has been recently recorded? What I mean is, I have a remote that shows me what is currently playing on my sheild. While the Mini-client is playing it thinks the sheild is idle.
Advertise it to what? I don't understand this one... maybe you can explain this a little more. What is the "remote" in this case? I'm sure it's possible if you see other apps doing it, I just don't fully grasp it.
Reply With Quote
  #3  
Old 09-13-2016, 07:07 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Quote:
Originally Posted by stuckless View Post
My goal would be to not require and OSD at all, and to be honest, it's close with what is there now. I use SageTV daily, and I use the shield remote exclusively. Pause/Play works nicely and skip forward/back works nicely. Some of this requires V9 server since I had to make changes to core sagetv to advertise that a "menu" or "osd" being shown, but the smart remote works quite well. I use gemstone and sure I need to go into the OSD to access the "Menu" or "Options" button but other than that, I never use the OSD controls.


I would think so. But I avoided using an IR blaster/Flirc since there is a subtle but noticeable delay. I prefer the Shield remote since it's very responsive.



Not sure I understand this... so no I haven't noticed anything like that.



Advertise it to what? I don't understand this one... maybe you can explain this a little more. What is the "remote" in this case? I'm sure it's possible if you see other apps doing it, I just don't fully grasp it.

Thanks for the response. Looks like my transition to the unRAID docker was a good idea after all. Just need to finish up.

As for the odd playback of background apps. Basically what is happening is I'll be watching something in sage and if I turn up the volume using the shield remote (slide up the blank part in the middle) suddenly something like plex will start playing whatever I was last watching. Very odd and hard to reproduce. Not sure if that is a good explanation or not.

As for the last point I'm talking about the top row of recommendations (or whatever it's called). Hulu shows things I either just watched or "should" watch. Youtube shows video recommendations. Plex and google music show an icon (tile, album cover, video fanart) of what I paused before going to something else. That sort of thing.

The "remote" is another unRAID docker for home automation called Home Assistant. It will show what is currently playing on the shield. If plex is playing a movie, it shows what it is and I can control plex. If hulu or netflix is playing something, it shows up as well. Sage playing something shows as idle.

I think quite a lot of this has to do with me using v7 over v9 at the moment while I get my linux docker up and running so I'll test and report back.

Hope I clarified everything. Thanks for taking the time to look.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #4  
Old 09-19-2016, 09:15 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
So I've been using v9 with the shield and I can say the experience is way better. The remote functions great. Like you said, I don't really need the OSD remote for the most part.

Thanks again for the great work.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #5  
Old 09-20-2016, 04:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by panteragstk View Post
So I've been using v9 with the shield and I can say the experience is way better. The remote functions great. Like you said, I don't really need the OSD remote for the most part.

Thanks again for the great work.
That is good to hear. Btw, as for your previous post, I've never experienced the background playback issue, and I use the remote volume all the time. For the recommendation bar, I've had that working in another app, so it's that not that hard to do, but, the bigger challenge will be for me to get the miniclient to start and then play a video right away... Not sure how easy/hard that might be.
Reply With Quote
  #6  
Old 09-20-2016, 03:46 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Quote:
Originally Posted by stuckless View Post
That is good to hear. Btw, as for your previous post, I've never experienced the background playback issue, and I use the remote volume all the time. For the recommendation bar, I've had that working in another app, so it's that not that hard to do, but, the bigger challenge will be for me to get the miniclient to start and then play a video right away... Not sure how easy/hard that might be.
Yeah, if it isn't easy then I wouldn't want you to even mess with something that isn't really of any value. You do enough around here.

I really don't get the background playback thing either. Happens randomly, but it is usually when I pick up the remote, so there has to be some sort of gesture that starts playback. Since I have CEC enabled I can press the play button on my TV remote and the exact same thing happens.

I'll see if the official sheild forums can help.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #7  
Old 10-15-2016, 10:53 AM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
I figured out why things would randomly start playing on the shield. There is a remote gesture (not sure if that's what it's called or not) that if you double tap the middle of the remote under the physical buttons (the part that lets you control volume) it will send a play/pause command.

Funny thing is that this command does not work with sage and some other apps, but will start playing whatever is in the "now playing" tile on the top recommendations bar. Would be nice to disable that, but I haven't found a way yet.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #8  
Old 10-15-2016, 12:07 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by panteragstk View Post
I figured out why things would randomly start playing on the shield. There is a remote gesture (not sure if that's what it's called or not) that if you double tap the middle of the remote under the physical buttons (the part that lets you control volume) it will send a play/pause command.

Funny thing is that this command does not work with sage and some other apps, but will start playing whatever is in the "now playing" tile on the top recommendations bar. Would be nice to disable that, but I haven't found a way yet.
Could you turn on "show unmapped keypresses" in the miniclient settings... if this is sending a keystroke, then likely I can capture it to do "something".
Reply With Quote
  #9  
Old 10-16-2016, 12:54 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Quote:
Originally Posted by stuckless View Post
Could you turn on "show unmapped keypresses" in the miniclient settings... if this is sending a keystroke, then likely I can capture it to do "something".
Sure thing. I'll reply with results.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #10  
Old 10-18-2016, 03:28 PM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Just wondering if there is anyway to add the Skip Fwd 2 and Skip Bkwd 2 commands to the mini client?
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #11  
Old 10-18-2016, 04:20 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
Just wondering if there is anyway to add the Skip Fwd 2 and Skip Bkwd 2 commands to the mini client?
Add them where? To the on screen nav?
Reply With Quote
  #12  
Old 10-18-2016, 05:16 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by stuckless View Post
Add them where? To the on screen nav?
It would be nice if we could get more buttons mapped from the game controller if that's not too hard. An idea for some mappings in on the Github site .
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #13  
Old 10-19-2016, 04:30 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by stuckless View Post
Add them where? To the on screen nav?
How about just implementing the keyboard commands from the full client? Could that be used to map to different controllers?
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #14  
Old 10-19-2016, 08:38 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by panteragstk View Post
So I've been using v9 with the shield and I can say the experience is way better. The remote functions great. Like you said, I don't really need the OSD remote for the most part.

Thanks again for the great work.
Quote:
Originally Posted by NetworkGuy View Post
How about just implementing the keyboard commands from the full client? Could that be used to map to different controllers?
Are you using a keyboard? And do they not work? I'm pretty sure almost all keyboard keys are mapped through as is.

Maybe I'm not understanding the requirements/issue here. I'll be honest, I have a lot more sucdess with requests like "can you map CTRL+G to be SageTV Stop" or something like that, other than a really vague, "can you just have it work like windows client"

(I get the controller mapping, since that is mapping previously unknown buttons to sagetv actions).
Reply With Quote
  #15  
Old 10-21-2016, 01:15 PM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by stuckless View Post
Are you using a keyboard? And do they not work? I'm pretty sure almost all keyboard keys are mapped through as is.
I did not have a keyboard attached, but I do now. I tried using the keyboard control keys from the manual. (Yes, I actually looked in it. )

It turns out that the Control and Alt keys are not mapped in the mini-client. (ALT_LEFT, ALT_RIGHT, CTRL_LEFT, CTRL_RIGHT) So the SageTV keyboard controls do not work. (FYI....numpad keys are also not mapped)

Work it be possible to map the ALT and CONTROL keys?

I could then program a remote using FLIRC to give full SageTV control in the mini-client.

Thanks
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #16  
Old 10-21-2016, 04:46 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
I did not have a keyboard attached, but I do now. I tried using the keyboard control keys from the manual. (Yes, I actually looked in it. )

It turns out that the Control and Alt keys are not mapped in the mini-client. (ALT_LEFT, ALT_RIGHT, CTRL_LEFT, CTRL_RIGHT) So the SageTV keyboard controls do not work. (FYI....numpad keys are also not mapped)

Work it be possible to map the ALT and CONTROL keys?

I could then program a remote using FLIRC to give full SageTV control in the mini-client.

Thanks
I thought for sure they were mapped, that's why I asked if you tried it. That being said, I don't really have a good way to test this.... I just checked the code and ctrl and alt meta keys should be working passing them along to sagetv.

The class that handles this is here..
https://github.com/OpenSageTV/sagetv...yListener.java

If someone wants to audit that and see where the problem is.

I think for the numpad keys I do have to manually map those to 0-9, which is not done, but would be pretty easy to do.
Reply With Quote
  #17  
Old 10-21-2016, 10:40 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Quote:
Originally Posted by stuckless View Post
I thought for sure they were mapped, that's why I asked if you tried it. That being said, I don't really have a good way to test this.... I just checked the code and ctrl and alt meta keys should be working passing them along to sagetv.

The class that handles this is here..
https://github.com/OpenSageTV/sagetv...yListener.java

If someone wants to audit that and see where the problem is.

I think for the numpad keys I do have to manually map those to 0-9, which is not done, but would be pretty easy to do.
Your 'androidToSageKeyModifier' function declares and builds 'modifiers' but then returns 0. Should it return 'modifiers'?
Reply With Quote
  #18  
Old 10-22-2016, 04:14 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wnjj View Post
Your 'androidToSageKeyModifier' function declares and builds 'modifiers' but then returns 0. Should it return 'modifiers'?
That would likely do it Thanks.
Reply With Quote
  #19  
Old 10-22-2016, 06:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I've updated a 1.0.9 to Amazon Store, Google Play, and Bintray. It hopefully fixes the Ctrl/Alt issue and adds support for numpad 0-9 (although I have I no way to actually test it)
Reply With Quote
  #20  
Old 10-22-2016, 02:00 PM
Ryand833 Ryand833 is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: St. Louis, MO
Posts: 80
Quote:
Originally Posted by stuckless View Post
I've updated a 1.0.9 to Amazon Store, Google Play, and Bintray. It hopefully fixes the Ctrl/Alt issue and adds support for numpad 0-9 (although I have I no way to actually test it)
Just tested it - works great for me so far.

Thank you for your hard work in making this Android client work so well - it's awesome.

I'm now using it on my Xiaomi Mi Box with a FLIRC adapter for use with a universal remote - I'm now able to use all the Alt/Ctrl key mappings that the original Sage client uses.

**EDIT - maybe I spoke too soon? worked fine in my initial setup but now can't get the Ctrl/Alt key combos to recognize any more. Will do more testing and follow up with results...

Last edited by Ryand833; 10-22-2016 at 09:41 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini-Client vs Full Client vs HD300 NetworkGuy SageTV Clients Development 5 09-12-2016 06:11 PM
[Android Mini Client] Integrate with Android TV 'Live Channels' dinki SageTV Clients Development 11 01-31-2016 09:43 AM
Sage should get an android client running on this Deacon Crusher Hardware Support 1 09-29-2010 11:30 AM
Android client? equalize SageTV Placeshifter 1 07-22-2010 09:37 AM
Placeshifting Server/Client observations & questions sainswor99 SageTV Placeshifter 8 06-03-2007 05:26 PM


All times are GMT -6. The time now is 12:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.