473,406 Members | 2,549 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,406 software developers and data experts.

Audio streaming (urgent)

Hi everyone...
I have to do a project work related on online audio system in Java...I have done the server-client prog(socket prog) n playing audio files..But how to stream my audio file from one PC to other using Java(using socket programming)

So i wanted to know whether it's possible?How?We have not been taught JMf..So still any hope..

Please help i hav 2 submit this within 15 days..
Apr 2 '07 #1
8 3720
I don't have experience with socket but i think you could use multicasting.
Apr 2 '07 #2
sicarie
4,677 Expert Mod 4TB
Hi everyone...
I have to do a project work related on online audio system in Java...I have done the server-client prog(socket prog) n playing audio files..But how to stream my audio file from one PC to other using Java(using socket programming)

So i wanted to know whether it's possible?How?We have not been taught JMf..So still any hope..

Please help i hav 2 submit this within 15 days..
Didn't JosAH already respond to this?

Please do not double-post. If you are worried that we have forgotten your post, after 24 hours you can reply to it with a "bump" post, which will move it back to the top.
Apr 2 '07 #3
Didn't JosAH already respond to this?

Please do not double-post. If you are worried that we have forgotten your post, after 24 hours you can reply to it with a "bump" post, which will move it back to the top.
Hello i just logged in yest..Who is JosAh ? anyways can i get any help 4m u regarding this..it's really urgent n d othr reply i got didn help much :(

Actually i searchd a lot on net but no suitable ans..

Expecting ur co-operation

Thanks
Apr 3 '07 #4
JosAH
11,448 Expert 8TB
Hello i just logged in yest..Who is JosAh ? anyways can i get any help 4m u regarding this..it's really urgent n d othr reply i got didn help much :(
That's me ;-) and I answered you in your first topic here. And as said before:
don't double post; it's confusing for your readers. Do you want me to remove
your other thread?

kind regards,

Jos
Apr 3 '07 #5
That's me ;-) and I answered you in your first topic here. And as said before:
don't double post; it's confusing for your readers. Do you want me to remove
your other thread?

kind regards,

Jos
Hi,ya u may remove the other thread..Sorry 4 d trouble..
But i didnt get it, i mean is it possible to write the prog 4 audio files just as we do 4 normal ones..In my server side should i convert it to bytes form using ByteStream and then how do i write it on socket ??

I cant write d whole file at once..right? convertin audio files to bytes is supported in Java? Pl help..
Apr 3 '07 #6
JosAH
11,448 Expert 8TB
Hi,ya u may remove the other thread..Sorry 4 d trouble..
But i didnt get it, i mean is it possible to write the prog 4 audio files just as we do 4 normal ones..In my server side should i convert it to bytes form using ByteStream and then how do i write it on socket ??

I cant write d whole file at once..right? convertin audio files to bytes is supported in Java? Pl help..
An audio file is just a (binary) file just as other type of files. You can open
an audio file for reading using a simple FileInputStream and read from it.

How you want to send the bytes across the wire depends on you: the other
party must know how many bytes you are going to send one way or another
so you could send the length of the file first, followed by the actual content
of the audio file.

What the other party is going to do with those bytes is also up to you: you
could use a simple FileOutputStream and write those bytes to that file.

kind regards,

Jos
Apr 3 '07 #7
An audio file is just a (binary) file just as other type of files. You can open
an audio file for reading using a simple FileInputStream and read from it.

How you want to send the bytes across the wire depends on you: the other
party must know how many bytes you are going to send one way or another
so you could send the length of the file first, followed by the actual content
of the audio file.

What the other party is going to do with those bytes is also up to you: you
could use a simple FileOutputStream and write those bytes to that file.

kind regards,

Jos

OK..so here was i stuck up,whether v can directly use FileInputStream..i shall try it today itself then..Thanks !!

N if i stil get bugs, wil let u kno tomo..anyways thnx a lot..bye 4 now..
Apr 3 '07 #8
JosAH
11,448 Expert 8TB
N if i stil get bugs, wil let u kno tomo..anyways thnx a lot..bye 4 now..
Ok, you're welcome of course; one little thing though: this is an international
forum and quite a few participants don't speak English as their native language.

Trying to understand what your problem is all about is one thing; trying to
figure out those acronyms is quite another thing. Do your readers a favour
please and write full words and sentences. This is not an SMS forum; Thank
you for cooperating.

kind regards,

Jos
Apr 3 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Daniel | last post by:
Hi all, I wanted a way to (http) stream Real Audio files without the need to use ..ram files. In case there are others interested in this, the following is the solution that worked for me: ...
3
by: DMS | last post by:
I need to create some specifications and budget request for a workstation (G5) and all necessary hardware and software for authoring online college courses. The course material would contain short...
1
by: JC | last post by:
Hi, I have to play a streaming audio. So in a thread I play audio as follow thread{ //some code for(;;){ //some code waveOutPrepareHeader(hwo, &(whdr), sizeof(WAVEHDR)); waveOutWrite(hwo,...
2
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
4
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
3
by: pankhudi | last post by:
I have written the code(in short) as below on the server side and client side import sun.audio.*; import java.io.*; import java.net.*; class Server2 {
8
by: Tony K | last post by:
Is streaming audio capable in asp.net 2.0 / AJAX? What I mean by streaming audio is: ability to play one or more songs back to back...or maybe even let the user select several songs to play and it...
2
by: cityrocker2005 | last post by:
Hi! Programmers, I have code for streaming audio file from remote server, if anybody know about it please send it to me.
0
MJMF
by: MJMF | last post by:
Streaming: how can i make an audio streaming to transmit the voice through a radio station to make the people listen by a web site. by C# please replay, help me MP3 audio effects: how can i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

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.