Play TiVo library sound on KEY press of Remote control

Posted By : Rahul Sarkar | 11-Jan-2017

Here I am going to describe how we can play different types of sound on the key press of the Remote Control of TiVo STB using the TiVo sound library.

TiVo provided a library tivo.client.TiVoSound.THUMBS_UP  to play the sound, we mainly use this library to play the sound on the key press of Remote Control, here THUMBS_UP is the sound type that is described in the TiVoSound library.

Here is the list of TiVo Sound type that we can use to play sound by pressing the Remote control key:

                    ALERT,
                    BONK,
                    DESELECT,
                    ERROR,
                    LEFT,
                    PAGE_DOWN,
                    PAGE_UP,
                    RIGHT,
                    SELECT,
                    SHOWCASE_ENTER,
                    SHOWCASE_EXIT,
                    SIGNAL_TONE,
                    SLOW_DOWN_1,
                    SPEED_UP_1,
                    SPEED_UP_2,
                    SPEED_UP_3,
                    SPEED_UP_4,
                    TAG_UP,
                    THUMBS_DOWN,
                    THUMBS_UP,
                    TIVO,
                    UP_DOWN.

Below are the key code list of TiVo Remote control:

                DOWN: 40,
                LEFT: 37,
                RIGHT: 39,
                UP: 38,
                OK: 13,
                THUMBSUP: 429,
                THUMBSDOWN: 437,
                CHANNELUP: 425,
                CHANNELDOWN: 424,
                RECORD: 416,
                NUM0: 48,
                NUM1: 49,
                NUM2: 50,
                NUM3: 51,
                NUM4: 52,
                NUM5: 53,
                NUM6: 54,
                NUM7: 55,
                NUM8: 56,
                NUM9: 57,
                LASTCHAN: 13,
                PLAY: 415,
                PAUSE: 463,
                SLOW: 419,
                FORWARD: 417,
                REVERSE: 412,
                TEXT: 459,
                INFO: 457,
                PIGTOGGLE: 91,
                STOP: 413,
                SKIPFORWARD: 92,
                SKIPREVERSE: 8,
                BACK: 8,
                YELLOW: 405,
                BLUE: 406,
                RED: 403,
                GREEN: 404.

Below are the example that how we can Play the TiVo Sound:

 tivo.client.createClient({
       ready: function (client) {
           var dev = client.getDevice();
           dev.playTiVoSound( tivo.client.TiVoSound.THUMBS_UP );
       },
       error: function (msg) {
           console.log("Error creating Client: " + msg);
       }
});

 

Thanks

About Author

Author Image
Rahul Sarkar

Rahul is an intellectual web app developer, he has good knowledge of C, Java, Java Script, Jquery. Apart from this he likes to travel and explore new places.

Request for Proposal

Name is required

Comment is required

Sending message..