admin
Admin
| Posts: 1880 |   |
 
|
Re:Ads Medialink - Shortcut A B C buttons? - 2006/03/31 08:15
hmm... it *might* be possible to bind the buttons to STOP, PLAY, etc...
Try changing the code in the "<swisscenter_dir>/base/capabilities.php" file as follows.
Change:
| Code: |
function tvid( $code )
{
// Define empty array
$map = array();
$code = strtoupper($code);
// Depending on hardware player, override default values by storing in the $map array
switch ( get_player_type() )
{
case 'PINNACLE SC200':
$map = array( 'KEY_A' => 'A'
, 'KEY_B' => 'B'
, 'KEY_C' => 'C' );
break;
case 'IO-DATA':
$map = array( 'BACKSPACE' => 'back'
, 'KEY_A' => 'play'
, 'KEY_B' => 'esc'
, 'KEY_C' => 'repeat' );
break;
case 'ELGATO':
case 'NEUSTON':
$map = array( 'KEY_A' => 'red'
, 'KEY_B' => 'green'
, 'KEY_C' => 'blue' );
break;
}
|
To:
| Code: |
function tvid( $code )
{
// Define empty array
$map = array();
$code = strtoupper($code);
// Depending on hardware player, override default values by storing in the $map array
switch ( get_player_type() )
{
case 'PINNACLE SC200':
$map = array( 'KEY_A' => 'A'
, 'KEY_B' => 'B'
, 'KEY_C' => 'C' );
break;
case 'IO-DATA':
case 'ADSTECH':
$map = array( 'BACKSPACE' => 'back'
, 'KEY_A' => 'play'
, 'KEY_B' => 'esc'
, 'KEY_C' => 'repeat' );
break;
case 'ELGATO':
case 'NEUSTON':
$map = array( 'KEY_A' => 'red'
, 'KEY_B' => 'green'
, 'KEY_C' => 'blue' );
break;
}
|
(the new line is the one that reads case 'ADSTECH':)
This should switch your player over to the alternative buttons that work on the linkplayer. It may or may not work, so please let me know if it does and I'll make the change permanent.
Rob
Server : Windows Home Server (HP MediaSmart EX470) Player #1: Pinnacle Showcenter 200 (wired ethernet) Player #2: Popcorn Hour A110 (wired ethernet)
|