473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

soundfile player

Any ideas on a script that would sequentially load and play sound files.
I'm not trying to "blast" anyone's sensibilities. I tried top do this
and couldn't make it work.

TIA

John Mcintosh
Nov 23 '05 #1
2 1153

John McIntosh wrote:
Any ideas on a script that would sequentially load and play sound files.
I'm not trying to "blast" anyone's sensibilities. I tried top do this
and couldn't make it work.


It would help if you could show what you tried and "didnt' work".

Matty.

Nov 23 '05 #2

John McIntosh wrote:
Any ideas on a script that would sequentially load and play sound files.
I'm not trying to "blast" anyone's sensibilities. I tried top do this
and couldn't make it work.


First, there is no general method for playing all types of sound files
on all sorts of players. About the best you can do is write code to
stream sound and/or video to specific players that will work on most
recent browsers. Since most modern computers have the WMP, that should
be your first target. Also many also add a path for the Real player,
since many have the Real player in addition to or instead of the WMP.
On a network where you can specify the type of players installed, you
can of course use any type of player you wish to install as the
official one for the network. This could include Winamp, QT, or many
other players that are not used as often. You must also select an
audience. Do you want to stream sound so it can be played on a dialup
connection, or do you want to stream at a much higher bit rate that
will give much better quality on a broadband connection. Many
commercial sites provide 2 or 3 streams at different bit rates.
Sometimes the code allows the correct stream to be selected
automatically for the browser connection speed detected.

Next, if you use a wma audio file along with the required wax
redirector file, you need no script to play sequentially. The xml wax
redirector file can be written with as many sound file links as you
wish. Much the same applies for the Real player that can have a rm file
with the sound and a ram redirector file. The ram file can include
several sound links that will play sequentially. In addition, the most
recent Real players support nearly all of SMIL 2, which is built into
them. SMIL is designed for media presentations and will allow you to
mix audio, video, text, etc content and exactly control the time of
appearance of each object either in sequence, parallel, or a mixture
thereof.

You will find more details about how this is done in my media pages
that can be reached at http://www.cwdjr.info/media/playersRoot.php .
Although I am using xhtml 1.1 served properly as application/xhtml+xml,
you can just as well use html 4.01 strict if you wish to avoid a php
include at the top of the page used to convert code for browsers,
including IE6, that do not support the mentioned mime type. Both Real
and Microsoft can provide free encoders for their formats in case you
do not have one.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: agrsaurabh | last post by:
Hello Everybody, I have created an AVI Player using DirectShow. This player is working fine. I have also created a View Window (with class name CViewWnd) using CFrameWnd class. This view...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
1
by: Stephen Adam | last post by:
Hi there, Have spent a while trying to find out how to connect to Windows Media Player through COM. Unfortunately there doesnt seem to be much stuff about it on the web. What I need to do is...
2
by: Vanga Sasidhar | last post by:
Already posted the same message but the date and time of my machine was set back. and it was listed under the old date. Thats why I am posting the same message again. Please accept this. ...
19
by: Tony | last post by:
I'm working on project that plays movies using Windows Media Player and I'm controlling everything with JavaScript. Per the client I only need to support IE 6 or greater which happens to make...
3
by: alice | last post by:
I've been trying for a long time to figure this out, to have a page with several MP3 clips, and each one having a custom start and stop button next to them to play the track. I finally found a bit...
1
by: SeanBoyWalton | last post by:
Hi, I'm currently trying to build a website for a DJ friend of mine and I have come stuck with a couple of issues. I've searched everywhere and put some code together but I still have problems. ...
1
by: blabello | last post by:
Hello, On my windows form, I have a button that on click sets fullscreen property to true. At runtime, however, I get a "Catastrophic Failure." Here's my code:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.