Radio Player and Flash Script

opinionswrest

Member
Jan 6, 2020
117
5
Hi

May be a simple fix but ive just put in a flash script now when my client loads in my radio player disappears

Any fix for this?

Client file posted
PHP:
<?php include_once('checktheban.php'); ?>
<!DOCTYPE html>
<html lang="en">
<style>
.flashfail{
margin: 0 auto;
max-width: 600px;
background-color: #111524;
color: #7ecaee;
margin-top: 80px;
border-radius: 10px;
overflow: hidden;
padding: 12px 24px 12px 24px;
display: block;
font-family: Roboto;
height: 350px;
font-size: 23px;
}
</style>
<link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/player.css"/>
  <link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/venobox.css"/>
  <script src="http://hotelurl/reliable/js/JQuery.js"></script>
  <script src="http://hotelurl/reliable/js/JQuery-UI.js"></script>
  <script src="http://hotelurl/reliable/js/venobox.js"></script>
<head>
<link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} Hotel - Client</title>

<link rel="stylesheet" href="{url}/app/tpl/skins/Plus/styles/client.css" type="text/css">

<script type="text/javascript" src="{url}/app/tpl/skins/Plus/js/swfobject.js"></script>
<script type="text/javascript">
var BaseUrl = "{swf_folder}";
var flashvars =
{
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "",
"connection.info.port" : "",
"site.url" : "{url}",
"url.prefix" : "{url}",
"client.reload.url" : "{url}/disconnected",
"client.fatal.error.url" : "{url}/disconnected",
"client.connection.failed.url" : "{url}/disconnected",
"external.variables.txt" : "{external_vars}?<?php echo time(); ?>",
"external.texts.txt" : "{external_texts}?<?php echo time(); ?>",
"external.override.texts.txt" : "http://hotelurl/swfs/gamedata/override/external_flash_override_texts.txt",
"external.override.variables.txt" : "http://hotelurl/swfs/gamedata/override/external_override_variables.txt",
"external.figurepartlist.txt" : "http://hotelurl/swfs/gamedata/figuredata.xml",
"productdata.load.url" : "{product_data}?<?php echo time(); ?>",
"furnidata.load.url" : "{furni_data}?<?php echo time(); ?>",
"use.sso.ticket" : "1",
"sso.ticket" : "{sso}",
"client.starting" : "Please wait! {hotelName} is starting up.",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"client.starting.revolving" : "For science, you lil monster/Loading funny message... please wait and hold my beer./Would you like rum with that?/Follow the yellow dick... I meant duck./Time is just an illusion./Are we there yet mate?!/I like your bum, no t-shirt./Look left. Look right. Blink twice. Ta da!/It\'s you, it\'s not me./Shhh! I\'m trying to stink here./Loading pixel universe, please hold.",
"flash.client.origin" : "popup"

};
var params =
{
"base" : BaseUrl + "",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);
</script>
</head>

<body>
<div id="client" style="height: 100%">

 

        <div id="client-ui">

        <div id="flash-wrapper">
            <div id="flash-container">

              
       <center> <div class="flashfail">
  <img src="http://hotelurl/app/tpl/skins/Habwish/images/logo.png">
    <h2 style="padding-bottom: 30px; color: white;"><center>You need flash to play {hotelname}!</center></h2>
    <p>
    <br> If you already have flash installed, click 'Enable Flash /  Install' to enable it. If you haven't got it installed, still click it, you can download it from there!
 
      
        <p><center><div style="margin-top: 10px; height: 350px;"><a href='http://www.adobe.com/go/getflashplayer' class="button"><font color="white"> Enable Flash / Install</font></a></p>
<div style="float: left; margin-top: -80px;"><img alt="{username}" src="https://habbo.nl/habbo-imaging/avatarimage?figure={figure}&action=wav&direction=2&head_direction=3&gesture=sml&size=l"/></div>
        </div></center>

</div>
</div>[PHP]
</div>
<body>
<div id="client"></div>
<script>
    function reload() {
      stream.pause();
      stream.src = "";
      $('#radioPlayer').fadeOut(400, function() {
        $('#radioPlayer').load('http://hotelurl/reliable/index.html #playerdiv', function() {
          $('#jsReload').html('<script src="http://hotelurl/reliable/js/reliable.js"></sc'+'ript>');
          $('#radioPlayer').delay(500).fadeIn(400);
          playRadio();
        });

      });
    }
  </script>
  <div class="playerbox">
    <div id="radioPlayer">
      <div id="playerdiv">
          <audio type="audio/mpeg" id="streamPlayer"></audio>
          <a onclick="javascript:toggleRadio();" href="#"><img id="toggler" src="http://hotelurl/reliable/images/play1.png"></a>
          <input id="volume" min="0.02" max="1.0" step="0.01" type="range" ondrag="">
      </div>
    </div>
    <div id="seperator"></div>
    <div id="buttons">
      <a href="http://uhrlive.com" target="_blank"><div id="button1"></div></a>
      <div id="button2" onClick="reload();"></div>
      <a class="venobox_custom" data-type="iframe" href="#"><div id="button3"></div></a
      <div id="jsReload"><script src="http://hotelurl/reliable/js/reliable.js"></script></div>
  <!-- ###################### -->
    </div>
  </div>
</body>
</html>
 

Users who are viewing this thread

Top