Jump to content

Help me with this script Please!


Monkuar

Recommended Posts

Hi guys !

 

I want to read and get the following name and artist from:

http://stream.wadiomedia.org/flash/clean/

 

I need help on what functions I need to use to display it on my website like this site has:

 

53533692.png

 

So pretty much I Want to have a php script that reads the artist name whenver that flash player updates to.

 

Thanks!

 

Link to comment
Share on other sites

As PHP is a server-side language and the Flash is displayed in your browser, I don't see a direct way for PHP to get anything from the Flash movie. If it's possible, you'd probably need to use some Javascript (ajax) to pull the info from the movie player and transmit that info to PHP on the server. Alternatively, if your server is streaming to the Flash movie, you might have some way to intercept the data transfer or integrate with the streaming server code.

Link to comment
Share on other sites

Its a flash app use php with xml?

 

is the flash using xml to read the song title artist name ect.

 

post your xml file and will convert it to php..

 

for a example: this is a xml file

<files 
mainWidth="700" 
nRows="3" 
thumbHeight="80" 
thumbWidth="80" 
imageWidth="120" 
imageHeight="120"
searchDetails="1"
>
<file thumbnail="thumbs/xmrv2.jpg"	image="images/xmrv2.jpg" headline="XML based Image Rotator V2" downloadURL="http://flashden.net/item/xml-based-image-rotator-v2/36855">
	<details>
	<![CDATA[
 <p>This is the  Version 2 of our <a href="/item/xml-based-image-rotator/25516"> XML  based Image Rotator</a></p>
<p><strong>Features:</strong> Fully  XML  Customizable Image Rotator.</p>
<ul>
  <li>Add as many as images as you want.  </li>
  <li>  Supported files <strong> JPG , GIF,  PNG  &  SWF </strong>. </li>

  <li>You can place <strong> HTML </strong> / <strong> CSS </strong> formatted image specific description.</li>
  <li><strong>Next</strong> & <strong>Previous</strong> Buttons on  mouse over.</li>

  <li>Nice bouncing effect for description</li>
  <li>Image preloader for each image.</li>
  <li>You can change image dimensions , fade speed, image duration, description coming speed & description text background transparency lavel from”config.xml” file.</li>
  <li> Commented code.</li>
  <li>  Help file included.</li>

  <li>Two  XML  files are included. for image data & for image rotator configuration.</li>
</ul>
<p><strong>Keyword:</strong> XML Based Image rotator, Image Gallary, Banner Rotation, Slide Show, Image Rotator</p>

	]]>
	</details>
</file>


</files>

 

this is the same file in php

<?php
include "../connect.php";
$username = mysql_real_escape_string($_GET['username']);
$sql = "SELECT * FROM accounts"; 
$result = mysql_query($sql);
$query = "SELECT username FROM accounts WHERE username = '$username'";
$results = mysql_query($query) or die("Data not found."); 

$new_xml = "<?xml version=\"1.0\"?>\n";
$new_xml .= "<files>\n";

if(mysql_num_rows($results) > 0) 
{


while ($row = mysql_fetch_assoc($result)) 
{ 


$new_xml .= "<file thumbnail=\"". $row['avatar'] ."\" image=\"". $row['avatar'] ."\" headline=\"". $row['username'] ."\" downloadURL=\"". $row['username'] ."\">\n";
$new_xml .=	"<details>\n";
$new_xml .=	"<![CDATA[". $row['bio'] ."]]>\n"; 
$new_xml .=	"</details>\n";
$new_xml .= "</file>\n";

}



$new_xml .= "</files>\n";

echo $new_xml; 
}
else
{
echo "WiiStream Error!\n" ;
} 
?>

 

Link to comment
Share on other sites

sorry i didn't read yout topic right my bad you just want to use this on your website?

 

here

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="main" width="220" height="207" align="middle" id="main"> 
<param name="allowScriptAccess" value="sameDomain" /> 
<param name="allowFullScreen" value="false" /> 
<param name="movie" value="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" /> 
<param name="quality" value="high" /> 
<embed src="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" quality="high" width="220" height="207" name="main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 
</object> 

 

Link to comment
Share on other sites

sorry i didn't read yout topic right my bad you just want to use this on your website?

 

here

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="main" width="220" height="207" align="middle" id="main"> 
<param name="allowScriptAccess" value="sameDomain" /> 
<param name="allowFullScreen" value="false" /> 
<param name="movie" value="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" /> 
<param name="quality" value="high" /> 
<embed src="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" quality="high" width="220" height="207" name="main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 
</object> 

 

 

Yea just like that, but i want to have a lil bar showing the song name/artist on my main page to, w/o havnig that huge player on my page, so people can click on it and it opens on window popup

 

go to warez-bb.org (top right) you'll see what im talking about

 

thzx

Link to comment
Share on other sites

Bump! :D Is this even possible ? or does that site have some source code that i neeD?

 

Bump :)

 

ya you got the basic codes you just need to get a popup window code and you can use java for that.

 

google search dhtml popup window

<script language="javascript" type="text/javascript">
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>

 

and use this for your image for the button.

<a href="http://www.yoursite.com/where your mp3 player flash name is" 
//this window size is 500 height 500 width
onclick="NewWindow(this.href,'mywin','500','500','no','center');return false" onfocus="this.blur()">YourLinkText</a>

 

 

Link to comment
Share on other sites

here is a quick example how they did it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
</head>

<body>
<a href="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" 

onclick="NewWindow(this.href,'mywin','500','500','no','center');return false" onfocus="this.blur()"><img src="http://t2.gstatic.com/images?q=tbn:ANd9GcTyVLPW9ZSEYYu-uzHpwGCh-iEjzHxSv4GK3q30GmE-1t_cdj-hDg" width="25" height="25" border="0" /></a>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.