$_SESSION['s_source'] = '0'; // 0 = Spiele nichts
$_SESSION['s_player'] = ''; // Kein Player ausgewählt
}
if (isset($_REQUEST['f_submit'])) {
// Quelle wählen
if (isset($_REQUEST['f_source']))
$_SESSION['s_source'] = $_REQUEST['f_source']; // '0' - '9'
// Player
if (isset($_REQUEST['f_player']))
$_SESSION['s_player'] = $_REQUEST['f_player']; // 'wmp' / 'quick' / 'real' / 'flash'
else
$_SESSION['s_player'] = '';
}
// In part we must react browser-specific
$isWindows = (strncmp($_SESSION['s_opsys'],'Win',3) == 0);
// MSIE on Mac does'nt count as MSIE in this context
$isMSIE = (strncmp($_SESSION['s_browser'],'MSIE',4) == 0 and $isWindows);
$isOpWn = (strncmp($_SESSION['s_browser'],'Opera',5) == 0 and $isWindows);
$isFFWn = (strncmp($_SESSION['s_browser'],'Firefox',7) == 0 and $isWindows);
// and certainly to media and player :)
$source = $_SESSION['s_source'];
$player = $_SESSION['s_player'];
// Here are the media examples to play
// 'mime'=Std-Mime, 'ffnp'=FF-Neues-Plugin-Mime nur für WMP.
// Using only absolute "data" URIs eliminates any ambiguity of relative URIs
// which according to the spec of the object tag are relative to "codebase".
$media = array();
$media['1'] = array(
'type' => 'Audio',
'name' => 'Stream: Bayern 3',
'ttip' => 'Streamformat: Windows Media Audio 9 / Real',
'kurz' => 'by3',
'uri' => array(
'wmp' => 'http://www.br-online.de/streaming/bayern3/bayern3_m32_red.asx',
'quick' => 'http://www.br-online.de/streaming/bayern3/bayern3_m32_red.asx',
'real' => 'http://streams.br-online.de/bayern3.smil',
'flash' => ''
),
'mime' => array(
'wmp' => 'audio/x-ms-wma',
'quick' => '',
'real' => 'audio/x-pn-realaudio-plugin',
'flash' => ''
),
'ffnp' => 'application/x-ms-wmp',
'pad0' => true);
$media['2'] = array(
'type' => '',
'name' => 'Stream: WDR EinsLive',
'ttip' => 'Streamformat: MPEG Audio Layer-3',
'kurz' => 'ein',
'uri' => 'http://metafiles.gl-systemhaus.de/wdr/channel_einslive.m3u',
'mime' => 'audio/mpeg',
'ffnp' => 'application/x-ms-wmp',
'pad0' => true);
|