Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: New Feedback API

  1. #1
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default New Feedback API

    Ripped from the LUA code:

    Code:
    --------------------------------------------------------------------------------
    -- NetRemote.SendLabel -- Set a button label value
    -- Input
    --   label: The name of the button to setfor k=1,getn(dvd) do
    --   value: The sting to send to the label
    -- Returns
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    
    function Public.SendLabel(label,value)
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.SendImage -- Set a button's image
    -- Input
    --   label: The name of the button to set
    --   file: The full path of the image file to send
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.SendImage(label,file)
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.JumpHome -- Jump to a "home" panel
    -- Input
    --   panel (optional): The name a home panel to jump to
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.JumpHome(panel)
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.JumpDevice -- Jump to a "device" panel
    -- Input
    --   device (optional): The name a device to jump to
    --   panel (optional): The name a device's to jump to
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.JumpDevice(panel,device)
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.JumpDevice -- Jump to a "macro" panel
    -- Input
    --   device (optional): The name a device to jump to
    --   panel (optional): The name a device's to jump to
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.JumpMacro(panel,device)
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.BatchStart -- Begin a batch of messages. Batched actions are not
    -- performed until the end of the batch. This helps with screen redraws.
    -- Input
    --   none
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.BatchStart()
    
    
    --------------------------------------------------------------------------------
    -- NetRemote.BatchComplete -- End the batch of messages. 
    -- Input
    --   none
    -- Returns:
    --   err: The last error received
    --------------------------------------------------------------------------------
    
    function Public.BatchComplete()
    
    
    --------------------------------------------------------------------------------

  2. #2
    Join Date
    Nov 2002
    Posts
    162

    Default

    Great work Gavin! Do I need to register the client or anything like that? Or do I simply create the button in NR, and NR knows to ask Girder for the appropriate feedback?

    Thanks,
    Zak

  3. #3
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    NetRemote will connect to Gireder automatically (and Girder will open a connection back). Registration, as it was, has gone - the TCP sessions are persistent. All you need to do is load the plugins, and call the LUA code. NetRemote tells Girder where it is - no hard coding.

    So far all nasty situations (confused programs) have been resolved by restarting NetRemote - Girder resets are not necessary any more.

    Once I get LDJ done - I really need to get a full feedback ZoomPlayer CCF out.

    Gavin

  4. #4
    Join Date
    Feb 2003
    Posts
    51

    Default Great Job

    Great job Gavin...I just finished integrating the new feedback into my multizone setup and it works great. Both of my clients are registering and feedback is quick to these units (one is a PC and the other is an Ipaq).

    Just thought I would let you know...

    Kevin

  5. #5
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    Kevin - good to hear it's working for you. I was worried that getting all the bits installed could be a bit traumatic.

    I would be interested how well it behaves if one client goes away (e.g. powered off).

    Gavin

  6. #6
    Join Date
    Feb 2003
    Posts
    51

    Default

    Hey Gavin,

    Getting the parts all installed and interfacing was a bit of a challenge but not to bad - took a little bit to understand how to script the feedback to the buttons but makes sense now.

    Here is a quick note on some testing I just did...something a bit odd is happening - but it is late at home right now (just about 1:00am) so it could be me :wink: but here is what is happening.

    When I have both clients connected and then I turn off the Ipaq the netremote session that is on the PC gets corrupted - screen basically goes blank. I have to turn that one off as well, I can turn it right back on and it is fine - I look in the logger and the only things that I can see are that the Ipaq disconnected - there is no other error that I see. Once I shut down the PC session it logs that as well but no obvious errors.

    The odd part of this is that it only happens if I shut off the Ipaq...if I shut down the PC session the Ipaq keeps on ticking with no problems?? Very Odd.

    I will check this some more tomorrow night after work to see if it is something that I am doing....

    Kevin

  7. #7
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    Hmm - It may be the timeouts on the LUA side. Depending on how a system shutsdown it may have different effects on the TCP sessions. - Gavin

  8. #8
    Join Date
    May 2003
    Location
    Stockholm, Sweden
    Posts
    430

    Default Help please

    Hey guys,

    damn, this looks trés cool.. BUT, I'm a dummie when it comes to LUA, so I would like some more help on how to apply all this into Girder and Netremote. Help would be dearly appreciated!

    Cheers,
    Jens

    Ps. if you want to, email me at jens.samuelsson@tre.se

  9. #9
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    Yep Jens - a "howto" on Feedback has been on my promise list for a while. It's just that feedback has been evolving faster than I can keep up.

    I'm thinking of a do-it-yourself ZoomPlayer with feedback for an example.

    Gavin

  10. #10
    Join Date
    Jul 2001
    Location
    Risřr - Norway
    Posts
    5,305

    Default

    So when will the "You have allready done it for me ZoomPlayer" come? :wink:

    I'm not an innovator, I'm an imitator! 8)
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •