I have a list of file descriptions in a list box that is filled via a php
mysql select. I know the name of the file that is described by the file
that is select from that list box. It is an audio file. I have a "Play"
button. I know how to get to a section of code when the user clicks that
button.
Question 1: What do I have to do to make it play on the the user's machine
when he clicks the "Play" button.
Question 2: When he terminates the music, I want it to stay on the original
page.
Shelly 4 2497
try this, it used to work on my old server, but now its a bit wonky,
does work though. link to:
script.php?song =coolsong.mp3 ,
and make this the contents thereof:
header("Cache-control: private");
header("Content-type: audio/x-mpegurl");
header("Content-disposition: inline;filename =stream.m3u");
echo "http://www.yourdomain. com/mp3z/".$_get['song'];
should start streaming that song in the users player of choice. User
should never actually leave the page, the song will just start.
for some wierd reason, it now loads about ten songs in my player, the
last one being the actual song:
<br -->
b><br -->
<br -->
b><br -->
<br -->
b><br -->
<br -->
b><br -->
<br -->
b><br -->
<br -->
b><br -->
<br -->
b><br -->
bipolarbears--Bi Polar Bears - demo 2002 - 03 - jumbalaya
what's with the <BR>s??? there is no <BR> in my script that i am
linking to. Only thing that's changed is the server, and i had to
change permissions on the text file that i'm using for a counter (which
is supposed to increment, used to, not now)
"juglesh" <ju*********@ho tmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . try this, it used to work on my old server, but now its a bit wonky, does work though. link to: script.php?song =coolsong.mp3 ,
and make this the contents thereof:
header("Cache-control: private"); header("Content-type: audio/x-mpegurl"); header("Content-disposition: inline;filename =stream.m3u"); echo "http://www.yourdomain. com/mp3z/".$_get['song'];
Thanks. I tried this. It brought up the windows media player skin, but the
message I got was that it was unable to play any of the playlist.
First, it asked for a login to the server.
Second, it said it was unable to play that type even though it plays that
file locally on my machine.
Shelly
"Shelly" <sh************ @asap-consult.com> wrote in message
news:iL******** ************@co mcast.com... I have a list of file descriptions in a list box that is filled via a php mysql select. I know the name of the file that is described by the file that is select from that list box. It is an audio file. I have a "Play" button. I know how to get to a section of code when the user clicks that button.
Question 1: What do I have to do to make it play on the the user's machine when he clicks the "Play" button. Question 2: When he terminates the music, I want it to stay on the original page.
Shelly
One more thing. I originally posted that I wanted it selected from a list
of files. Do I do this with?
header("Locatio n: myfile.php?song =thesong.mid");
Shelly
"Shelly" <sh************ @asap-consult.com> wrote in message
news:M7******** ************@co mcast.com... "Shelly" <sh************ @asap-consult.com> wrote in message news:iL******** ************@co mcast.com...I have a list of file descriptions in a list box that is filled via a php mysql select. I know the name of the file that is described by the file that is select from that list box. It is an audio file. I have a "Play" button. I know how to get to a section of code when the user clicks that button.
Question 1: What do I have to do to make it play on the the user's machine when he clicks the "Play" button. Question 2: When he terminates the music, I want it to stay on the original page.
Shelly
One more thing. I originally posted that I wanted it selected from a list of files. Do I do this with?
header("Locatio n: myfile.php?song =thesong.mid");
Shelly
Yes. I answered my own question.
Shelly This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marian Aldenhövel |
last post by:
Hi,
I am trying to make pygame play music on windows. This simple program:
import pygame,time
pygame.init()
print "Mixer settings", pygame.mixer.get_init()
print "Mixer channels", pygame.mixer.get_num_channels()
pygame.mixer.music.set_volume(1.0)
pygame.mixer.music.load('file1.mp3)
|
by: Lauren Wilson |
last post by:
Hi Folks,
I have an Access 2k app that is often run on a LAN with several users.
Unfortunately there is one feature that fails to work in that setup.
Our app allows the user to play WAV audio files through their sound
card that is connected to their phone through a proprietary piece of
hardware. This feature works fine on the machine that hosts the back
end data base. It does NOT work for a client PC because, for whatever
reason,...
|
by: Sumaira Ahmad |
last post by:
Hi,
Is there any way of playing songs and downloading songs from a server
onto a client machine.
I want to develop an application such as a music portal which allows
clients to play songs that reside on a Web Server. So does the web
server need to send the song as an attachment to the ASP.NET Web
application or does it do streaming?? And how is it achieved??
Please any ideas or any hints will be highly appreciated.
|
by: Tom W |
last post by:
Ok, hi evryon
now I swear I put this post up yesterday but I cant find it anywhere so ill put it up again
So I'm making a program to play music but the code ive got for the open dialog thing isn't working. This is what iv'e go
\\\\\\\ Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOpen.Clic
Dim OpenFileDialog(
Dim openFile As New System.Windows.Forms.OpenFileDialo
openFile.DefaultExt =...
|
by: Doug van Vianen |
last post by:
Hi,
I am using Visual Basic 6 to generate web pages that can be used by the
members of our seniors' computer club to create e-cards that include their
own pictures. I wish to include background music.
The music plays okay until the viewer clicks to cause some JavaScript code
to execute. When the JavaScript code runs it stops the music even though the
coding is just used to resize pictures and divs on the page (viz, it is not
supposed...
| |
by: gnarl |
last post by:
Hello all,
I'm developing a site in PHP4 for a music artist, who wants music to
play across all their pages. I have loaded a simple flash applet to
play the music, but every time the visitor to the site moves to a
different page the music starts again. The artist would like the music
to play continuously.
I can only think of three possible ways to solve this, and I am not
happy with any of them.
|
by: FlashForumKB |
last post by:
Here is a chance for you to make my developers look bad.
I have hired these guys to development my website which, in part, has music demos available to my users. These demos must include the entire piece with a spoiler in the background so users can not record them freely. The files must be secure! My original request was to have them build an application that merged the two files (spoiler and original music) into a single mp3 file and have...
|
by: sumaabey |
last post by:
Thanks in advance.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
by: mustardcharlie |
last post by:
My first question on this site, so hi to all.
I have recently constructed a database for my daughter's (12) mp3 files so that she can easily move them to and from her mp3 player. This works fine and saves me hours searching for a particular track.
However, so that I can check that a file is not duplicated, I would like to be able to listen to it, preferably in WinAmp but WMP would do in this case. In short, what I am trying to do, is...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |