RemoteHams.com
September 09, 2010, 07:23:09 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Embedding flash code and media player on own website  (Read 990 times)
g7npw
Remote Enthusiast
***
Offline Offline

Posts: 12


WWW
« on: January 24, 2010, 12:06:34 PM »

Brandon could you share details of how a radio owner can embed & centralise the flash client on there own website as I have as I find it a real neat touch. Smiley

Also I would now like to know the best way to embed a media player and to centre it on the page using the java script already available. Roll Eyes

Thanks Dom
 
G7NPW

www.gb3dc.co.uk


Logged
kg6ypi
Administrator
Remote Master
*****
Offline Offline

Posts: 77



« Reply #1 on: January 24, 2010, 07:03:40 PM »

Hope this helps...

You must upload radio.swf and rcf.js to your web server, as these files are required.

This requires the "rcf.js" javascript file to be included in the "<head>" part of your html file, like so..
Code:
<head>

    <script type="text/javascript" src="rcf.js"></script>

</head>

For the flash player, make sure to replace the MYDOMAIN and MYPORT  parts
Code:
<!--Begin Flash Code, using javascript to pass W3C validation for cross-browser support -->
      <div id="flash">
 <b>If you see this message for more than 10 seconds, Javascript may be disabled, or you need to download and install <a href='http://get.adobe.com/flashplayer/'>Adobe Flash Player 10+</a>.</b>
          <script type="text/javascript">
            EmbedFlashMovie("flash", "radio.swf?tmpDomain=MYDOMAIN&amp;tmpPort=MYPORT", 650, 400);
          </script>
      </div>
<!--End Flash Code -->

For the audio player (this embeds windows media player) TODO add width and hieght params
Code:
<!--Begin Audio Code, using javascript to pass W3C validation for cross-browser support -->
<div id="audio">
    <script type="text/javascript">
        EmbedAudio("audio", "mms://MYURL");
    </script>
</div>
<!--End Audio Code -->

« Last Edit: January 24, 2010, 07:26:42 PM by Brandon Hansen » Logged
barney
Support Tech
Remote Tech
****
Offline Offline

Posts: 43



« Reply #2 on: January 28, 2010, 03:23:51 AM »

What you mean something like this? Smiley
http://radioremote.no-ip.org/
While you are there click on the FT840 link or image! Grin

Barney
« Last Edit: January 28, 2010, 04:46:35 AM by barney » Logged
barney
Support Tech
Remote Tech
****
Offline Offline

Posts: 43



« Reply #3 on: April 25, 2010, 12:44:18 AM »

I have my TenTec embedded here, http://barneysonlineradios.blogspot.com/
How do I have more than one radio embedded?
I want to put the FT840 on there but I can't seem to figure it out.

Barney
Logged
kg6ypi
Administrator
Remote Master
*****
Offline Offline

Posts: 77



« Reply #4 on: April 25, 2010, 07:33:46 AM »

I want to put the FT840 on there but I can't seem to figure it out.

I think you did figure it out Smiley  

Some facts, you can use the SWF file on beta.remotehams.com;  you must put the <script> code after the <div> layer with the id="flash"
Code:
<div id="flash">This content in this div layer gets replaced with the Flash Code from the Javascript function below.</div>
<script type="text/javascript">
            EmbedFlashMovie("flash", "http://beta.remotehams.com/radio.swf?tmpDomain=RADIODOMAIN&tmpPort=RADIOPORT", 650, 400);
</script>

You can also change the "id" to something more unique  like radioOne, radioTwo, (this will allow you to embed multiple radios on the same page)
Code:
<div id="radioOne">another layer with an ID</div>
<script type="text/javascript">
            EmbedFlashMovie("radioOne", "http://beta.remotehams.com/radio.swf?tmpDomain=RADIODOMAIN&tmpPort=RADIOPORT", 650, 400);
</script>
« Last Edit: April 25, 2010, 07:36:31 AM by Brandon Hansen » Logged
g7npw
Remote Enthusiast
***
Offline Offline

Posts: 12


WWW
« Reply #5 on: June 12, 2010, 04:12:07 PM »

Hi Brandon. Long Time. Been very busy here so not played much radio. Just a quick question?

How do you embed the newer flash audio player on your own page?

Logged
kg6ypi
Administrator
Remote Master
*****
Offline Offline

Posts: 77



« Reply #6 on: June 12, 2010, 04:25:46 PM »

How do you embed the newer flash audio player on your own page?

This is actually Unreal Media's  flash control. But it is possible, i'll gather the info needed download links etc, and update this post soon...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 19 queries.