Difference between revisions of "Message Translation"
From LinuxMCE
Line 21: | Line 21: | ||
* TWO PAUSES to PLAY (first PAUSE will stop medea, the next will resume) | * TWO PAUSES to PLAY (first PAUSE will stop medea, the next will resume) | ||
* CHANGE_PLAYBACK_SPEED to SCAN_FWDFAST_FWD/SCAN_BACKREWIND | * CHANGE_PLAYBACK_SPEED to SCAN_FWDFAST_FWD/SCAN_BACKREWIND | ||
− | * TUNE_TO_CHANNEL into 0/1/2/3/4/5/6/7/8/9 | + | * TUNE_TO_CHANNEL into a sequence of 0/1/2/3/4/5/6/7/8/9 |
== Implementation == | == Implementation == | ||
Check ''MessageTranslation/AVMessageTranslation.{cpp,h}'' for more details. You'll find implementation of translation, timers between consecutive commands and so on. | Check ''MessageTranslation/AVMessageTranslation.{cpp,h}'' for more details. You'll find implementation of translation, timers between consecutive commands and so on. |
Revision as of 15:41, 23 May 2006
This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto. |
Used to translate between toggle and discrete commands (usually for infrared equipment). When a device only accepts toggle commands and it receives an "ON" or "OFF", it will be translated into "TOGGLE_POWER" depending on device status. Same is true then device accepts discrete commands, but the remote has only toggle button, in this case we will send "ON" or "OFF", again it depends on device state.
Available translations
Power
- ON/OFF to TOGGLE_POWER
- TOGGLE_POWER to ON/OFF
Inputs
- AN INPUT to (one/many) INPUT_SELECT
- INPUT_SELECT to one of the INPUTS
You'll have to set up corectly input sequence for this to work as expected.
List of available inputs
- RGB, Video 1, Video 2, Video 3, Video 4, Video 5, Tape / Tape 1, TV, CD, Phono, Aux, DVD, Tuner, Video 6, Video 7, AM, FM, DVD Multi, Aux 2, Tape 2, Minidisc, Tuner 2, VDP, Laserdisc, DSS, DVI, Svideo, Composite, RF Input, DBS/Satellite, VCR-1, VCR-2, VCR-3, V.AUX, AV 1, AV 2, AV 3, SVideo/YC 1, SVideo/YC 2, SVideo/YC 3, Tuner 3, WB, SW, HDMI, D4, Input 1, Input 2, Input 3, Input 4, Input 5, Input 6, Input 7, Input 8, Input 9, Input 10, Radio, Antenna, CDR, DAT, External 1, External 2, External 3, Component 1, Component 2, DVR, Composite 2, HDMI 2, RGB 2, PC, HD, AV 4, AV 5, AV 6, AV 7, AV 8
Media
- TWO PAUSES to PLAY (first PAUSE will stop medea, the next will resume)
- CHANGE_PLAYBACK_SPEED to SCAN_FWDFAST_FWD/SCAN_BACKREWIND
- TUNE_TO_CHANNEL into a sequence of 0/1/2/3/4/5/6/7/8/9
Implementation
Check MessageTranslation/AVMessageTranslation.{cpp,h} for more details. You'll find implementation of translation, timers between consecutive commands and so on.