RE: [PHP-ES] problema al abrir archivos mp3
| From: | Alejandro Pérez Nava | Date: | Wed, 03 Jul 2002 13:02:34 +0000 |
| Subject: | RE: [PHP-ES] problema al abrir archivos mp3 | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-24444@lists.php.net to get a copy of this message | ||
ya habia probado algo parecido el problema es que tengo los archvos
guardados en una bd y su el codigo
$conn = MyDBLogon();
$res = MyExecuteQuery($conn, "SELECT Imagen FROM $tabla_imagen WHERE
IdImagen = '$IdImagen'");
MyFetchRow($res, &$row);
Header("Content-type: audio/mp3");
echo "$row[0]";
y no hay forma, si embargo con las imagenes cambiando el content type
funciona perfectamente.
-----Mensaje original-----
De: Antonio J. Hernandez Blanco. [mailto:antonio.hernandez@umcc.cu]
Enviado el: miércoles, 03 de julio de 2002 13:39
Para: lista@phpes.com
Asunto: Re: [PHP-ES] problema al abrir archivos mp3
Hola
Te paso un pequeño codigo en html que usa el wmp, pero lo
puedes configurar para que aparezca en otra ventana al hacer
click encima del mp3, o cualquier otro formato mmedia.
<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
//-- This next line ensures that any plugins just
installed are updated in the Browser
//-- without quitting the browser.
navigator.plugins.refresh();
// We don't need the APPLET within IE
// ***Please note that if you do not need to script
events, you can safely remove the next two lines
document.write("\x3C" + "applet MAYSCRIPT
Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=5 height=5 name=appObs\x3E
\x3C/applet\x3E")
}
//-->
</script>
<!-- Set ShowControls, ShowDisplay, ShowStatusBar to value 0
to not display the corresponding thing under the video
window -->
<OBJECT ID="NSPlay" WIDTH=160 HEIGHT=128
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://tuserver.com/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player
components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="AQUI DEBES PONER EL
ARCHIVO A REPRODUCIR">
<PARAM NAME="ShowControls" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="AutoSize" VALUE="1">
</OBJECT>
Este archivo debes bajarlo para tu sitio o lo mandas a
ejecutar desde el sitio de microsoft nsmp2inf.cab
suerte.
On Wed, 3 Jul 2002 12:29:33 +0100
Alejandro Pérez Nava <ale@canaryweb.es> wrote:
> estoy abiriendo archivos mp3 q tengo en una base de datos
> mysql, al hacer
> clic en ellos y reproducirlos el navegador me abre el
> media player ala
> izquierda en el propio navegador, y no se por qué las
> cosas que tengo en
> javascript no me funcionan con el media player abierto
> independiente del
> navegador, ¿existe alguna posibilidad de forzar a que se
> abra independiente
> del navegador.
>
>
> Saludos y gracias
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
______________________________________________________
\|||||||/ Ing. Antonio J. Hernández Blanco.
< - - > Universidad de Matanzas. Cuba.
\ L / Profesor & Webmaster.
-oOOo-------oOOo---------
|email:chino@umcc.cu \
| chinomsg@yahoo.es \
|Fax: 14258710365 \
|-----oOOo-------oOOo-------\
________________________________________________________
______________________________________________________
Servicio de correo de la Universidad de Matanzas, Cuba
---------------------------------------------------------------------
Archivo On-line: http://www.phpes.com/
via news: news://news.phpes.com/
Manual PHP en español: http://www.php.net/manual/es/
Para dar de baja la suscripción, mande un mensaje a:
lista-unsubscribe@phpes.com