Audio streaming in client - server - client  model

Hi we are developing an application which contains audio chat. all Clients are connected to the server using a plain socket. The message is done through server. No client is in public ip(i.e. no two clients will connect each other directly they have to go through the server only).
We are incorporating audio chat in this scenario using JMF. But the problem is no client is in public ip. We are able to send the audio stream to the server by using JMF but how to send this stream to the other clients using a socket.
Please suggest some solution to this problem.
Thanks in advance.

Checkout Rogue Amoeba's 'Nicecast', looks like it would do what you want:
http://rogueamoeba.com/
I don't have it, but I've been using RA's 'Audio Hijack' for years - solid, well designed, feature rich, constantly improved, great piece of software, great value for money, great company ... and I don't work for them!
G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.8)   mLan:01x/i88x; DP 5.1, Cubase SX3, NI Komplete, Melodyne.

Similar Messages

  • Can we write client object model code with Server object model?

    Hi everyone,
    I have to create one timer job using client object model (C#) in Sharepoint 2010 template on feature activation. Is it possible to write the code of client object in sharepoint empty project to create timer job? If yes/no? then why?
    Thanks in advance!!!

    Hi ShindeK,
    Yes you can used CSOM in Sharepoint but Timer jobs run directly on the server. The Client Side Object Model is a wrapper that brokers its calls to the server via the built in web services that SharePoint provides.
    You will not get any performance gains in this scenario using CSOM. You should use the full server object model of SharePoint
    SharePoint 2010 also has three Client Object Models (Managed, Silverlight, JavaScript) which are meant to be used by code accessing SharePoint remotely.
    --You can also used powershell script in timer job
    Chekc the link which cann help you step by step CSOM in Sharepoint timer job
    http://www.youtube.com/watch?v=Z7wHj-bSk0g
    You can also try the below link....
    https://bramdejager.wordpress.com/2013/08/02/using-csom-and-powershell-to-query-sharepoint-online-or-on-premise/
    http://stackoverflow.com/questions/3656920/run-sharepoint-timer-jobs-from-powershell
    Please mark the Answer and Vote me if you think that it will help you to resolved your issue

  • Use HTTP Dynamic Streaming (HDS) and HTTP Live Streaming (HLS) to serve live streams to clients over HTTP

    I have created a live stream of a video and it gets stored in live folder.
    Now i need to use HTTP Dynamic Streaming (HDS) and HTTP Live Streaming (HLS) to serve live streams to clients over HTTP, publish the streams to the HTTP Live Packager service on Flash Media Server.
    So what necessary steps do I  need to follow to do that ??

    You need to generate a manifest file using Configurator tool and placed it under the webroot directory.
    C:\Program Files\Adobe\Flash Media Server 4.5\tools\f4mconfig\configurator

  • Socket Exception when closing Server Socket Streams if Client closes first

    Hi
    I have 2 processes - a Server socket and a client socket. If I close the Client process first, and then try closing down the Streams on the Server process, I get a SocketException with message "Socket is closed" when I try and close the 2nd Stream. It does not matter on the order of the Stream being closed down, the exception is always thrown when I try and close the second stream. The code snippets are below:
    SERVER =======
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class ServerSocketTest {
    public static void main(String args[]) {
    try {
    ServerSocket ss = new ServerSocket(9999);
    Socket s = ss.accept();
    // Get refs to streams...
    InputStream is = s.getInputStream();
    OutputStream os = s.getOutputStream();
    // sleep to let client shutdown first...
    try {
    Thread.sleep(10000);
    } catch (InterruptedException e) {
    System.err.println(e);
    System.err.println("B4 inClose: isBound=" + s.isBound());
    System.err.println("B4 inClose: isClosed=" + s.isClosed());
    System.err.println("B4 inClose: isConnected=" + s.isConnected());
    System.err.println("B4 inClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("B4 inClose: isOutputShutdown=" + s.isOutputShutdown());
    s.getInputStream().close();
    System.err.println("After inClose: isBound=" + s.isBound());
    System.err.println("After inClose: isClosed=" + s.isClosed());
    System.err.println("After inClose: isConnected=" + s.isConnected());
    System.err.println("After inClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("After inClose: isOutputShutdown=" + s.isOutputShutdown());
    s.getOutputStream().close(); // will break here with SocketException!
    System.err.println("After outClose: isBound=" + s.isBound());
    System.err.println("After outClose: isClosed=" + s.isClosed());
    System.err.println("After outClose: isConnected=" + s.isConnected());
    System.err.println("After outClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("After outClose: isOutputShutdown=" + s.isOutputShutdown());
    s.close();
    } catch (Exception e) {
    System.err.println(e);
    CLIENT ======
    import java.net.Socket;
    public class ClientSocket {
    public static void main(String args[]) {
    try {
    Socket s = new Socket("localhost", 9999);
    try {
    // sleep to leave connection up for a while...
    Thread.sleep(2000);
    } catch (InterruptedException e) {
    System.err.println(e);
    s.close();
    } catch (Exception e) {
    System.err.println(e);
    The debug shows that isClosed() is set to 'true' after the first call to s.getInputStream().close(). The Sun API Socket class getOutputStream() has a call to isClosed() at the start of the method - it then throws the SocketException that I get. Why does the SocketImpl do this before I get a chance to call a.getOutputStream().close()?
    One final thing, the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called.
    Any ideas/help here greatly appreciated.
    Thanks
    Gaz

    Ok, I know what's going on now - I needed something to do on Friday afternoon anyhow!
    Basically if you call either getOutputStream.close() or getInputStream().close(), the underlying Sun implementation will close the Socket.
    Here's what's happening under the covers in the Sun code:
    s.getInputStream() is called on the Socket class.
    The Socket class holds a reference to the SocketImpl class.
    The SocketImpl class is abstract and forces sublclasses to extend it' s getInputStream() method.
    The PlainSocketImpl extends SocketImpl.
    PlainSocketImpl has a getInputStream() method that returns a SocketInputStream. When the stream is created for the first time, the PlainSocketImpl object is passed into the Constructor.
    The SocketInputStream class has a close() method on it. The snippet of code below shows how the socket is closed:
    <pre>
    * Closes the stream.
    private boolean closing = false;
    public void close() throws IOException {
         // Prevent recursion. See BugId 4484411
         if (closing)
         return;
         closing = true;
         if (socket != null) {
         if (!socket.isClosed())
              socket.close();
         } else
         impl.close();
         closing = false;
    </pre>
    So, it seems that out PlainSocketImpl is getting closed for us, hence the SocketException being thrown in Socket.getOutputStream() when I call it after Socket.getInputStream()/
    I've not had a look at the reason why the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called though - any thoughts appreciated.
    Thanks
    G

  • Exception writing binary data to the output stream to client -Broken pipe

    Hi,
    I am trying to use the drag & drop feature using Contributor mode of Webcenter sites. Single Image Page Attribute is working properly where as Multiple Image Page Attribute throws the following error:
    [ERROR] [.kernel.Default (self-tuning)'] [logging.cs.satellite.request] Exception writing binary data to the output stream to client 10.191.117.106
    java.net.SocketException: Broken pipe
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:568)
         at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:539)
         at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:427)
         at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.java:648)
         at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java:333)
         at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:148)
         at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:148)
         at COM.FutureTense.Servlet.ServletRequest$OutputOutputStream.write(ServletRequest.java:80)
         at COM.FutureTense.Servlet.ServletRequest.write(ServletRequest.java:1633)
         at com.openmarket.Satellite.RequestContext.write(RequestContext.java:1123)
         at com.openmarket.Satellite.BytePiece.stream(DataPiece.java:253)
         at com.openmarket.Satellite.CacheObjectImpl.stream(CacheObjectImpl.java:651)
         at com.openmarket.Satellite.Http11Responder.respondForWrapper(Http11Responder.java:142)
         at com.openmarket.Satellite.WrapperAwareResponder.respond(WrapperAwareResponder.java:36)
         at com.openmarket.Satellite.SatelliteServer.execute(SatelliteServer.java:85)
         at com.openmarket.Satellite.servlet.BaseServlet.doGet(BaseServlet.java:118)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:557)
         at com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Thanks
    KarthiK

    Thank u very much,
         FileOutputStream opGif = new FileOutputStream(destFile, false);
    I have changed above line with the following line:
         PrintWriter opGif = new PrintWriter ( new FileWriter(destFile, false));
    and now this code is working very fine.
    Thanks once again...

  • How to retrieve the content type used in a document library (C# - Client Model).

    Hello,
    I need to know if it's possible to retrieve the content type used in a document library, so I can know the columns active and used in this document library. I am using the Client Model in C#.
    Thanks

    First, retrieve your document library as a List object. Then, use the
    List.ContentTypes property to iterate through all the content types assigned to the list.
    Blog:
    blog.beckybertram.com |
    RSS | @beckybertram |
    SharePoint 2010: Six-in-One

  • Windows Media Server Audio Stream

    Is there a way to play a Windows Media Server Audio stream on
    Adobe Flash Player embeded on a website?

    Not that I've ever heard of... you'd have to get that audio
    into some form that Flash supports (as either audio or
    video...)

  • MMAPI Audio Capture & Streaming To A Server

    HI,
    I want to be able to capture audio through a MMAPI compliant phone and stream it to a server so that web listeners could listen to it live.
    Is there any way in MMAPI to stream the captured audio live to a server?

    Thanks for the replay.I am testing the application with 2.2 version of J2me toolkit. That kit is not supporting to capture the webcam data.It always emulate a blank screen while trying to capture the webcam. Can u suggest is it because the configuration is wrong or the kit is not supporting this feature. Have u able to capture proper images form a web in J2ME 2.5 Beta.

  • Streaming live audio to a Helix server

    Can I use JMF to stream audio to a Helix server? If, not which streaming servers are the best to use with JMF?
    The audio is being captured on a mobile phone and sent to the web server via HTTP POSTs (to a Servlet). I want the servlet to break it up into packets and stream it live to a streaming server, where people can listen to it on the web.
    Thanks.

    Removed; didn't notice the "live audio" when I made my suggestions.
    Message was edited by: Dave Sawyer.

  • Audio Streaming with NetStream on LCDS or FDS

    Hi. I can't make audio streaming working on FDS neither on
    LCDS. I want to record audio on server.
    When trying to :
    quote:
    new NetStream(this.netConnection);
    i get
    quote:
    01:19:48,140 INFO [STDOUT] [Flex]
    Thread[RTMP-Worker-2,5,jboss]: Closing due to unhandled exception
    in reader thread: java.lang.IndexOutOfBoundsException: Index: 0,
    Size: 0
    at java.util.ArrayList.RangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at
    flex.messaging.io.tcchunk.TCCommand.getArg(TCCommand.java:260)
    at
    flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java: 821)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424 )
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPo olExecutor.java:665)
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx ecutor.java:690)
    at java.lang.Thread.run(Unknown Source)
    The same code works fine on RED5.
    What's wrong?
    RTMP channel definition is :
    quote:
    <channel-definition id="my-rtmp"
    class="mx.messaging.channels.RTMPChannel">
    <endpoint uri="rtmp://{server.name}:2040"
    class="flex.messaging.endpoints.RTMPEndpoint"/>
    <properties>
    <idle-timeout-minutes>20</idle-timeout-minutes>
    <client-to-server-maxbps>100K</client-to-server-maxbps>
    <server-to-client-maxbps>100K</server-to-client-maxbps>
    </properties>
    </channel-definition>

    There are seeral apps that play music over wifi or 3G
    Pandora, I(heart)music, Bing100, all free,

  • Synchronization of Multiple Audio Streams

    Hi,
    I'm trying to synchronize several Audio streams during
    playback and recording. Several questions I have and not sure if
    actually feasible or how to best address :
    1/ When playing back 2 audio streams, how can I ensure the
    playback is full synchronized (<20ms difference) when client
    receives the 2 streams in playback ? Basically trying to simulate a
    mix-down with 2 // streaming. Ultimately wants to achieve this with
    about 5 audio streams playing back and can't accept tolerate delay.
    I suspect I need to synchronize the start of each stream so that
    they all start together, but not been very succesfull so far.
    Alternatively is there a way to mix-down 2 streams on server and
    send back a 1 mixed-down audio stream ?
    2/ More tricky I believe : If I playback 1 audio stream and
    start recording a separate audio stream, I'm getting again
    desynchronised. Later If I replay the 1 audio and the newly
    recorded one, both are not anymore aligned. I suspect (but not sure
    that the delay and desynchronization is introduced during the
    recording but not sure and reason I asked first question...
    If someone knows those answers or could provide some
    direction of work.... I would greatly appreciate.
    Thanks

    When it comes to FMS streams, there really is no way of
    accurately syncronizing streams. Since you can't keep data in
    buffer when pausing the stream, and you have to rebuffer any time
    you seek, it's impossible.
    The only way I've been able to sync flv's is using
    progressive download. With progressive, you can sync streams, but
    the accuracy is limited to the keyframe interval of the flv files.
    For example, if you have 2 keyframes per second, you can achieve
    sync with 1 second accuracy. with 4 keyframes per second, you can
    get the offset down to 500ms. If you make every frame a keyframe
    (makes for a huge file), you can get frame accurate sync.
    The theory is to build a class that monitors the time and
    buffer length properties of your two streams, pausing and/or
    seeking when needed to maintain sync.

  • Who know to transmit video/audio stream.

    Hi Friend
    Who know how to transmit video/audio stream in A LAN and other LAN.
    thanks

    sad :(
    but if I have my server, which get stream from one of clients and send it to others, seems to be smaller time to make "stream redistributing" server from it... Looks fun - different-level servers system :))
    Each one send to its authorized clients =)
    I hope, chief won't give me task to make it for closed LANs...
    P.S> just a small offtop:
    My respect to wew64, I would be glad to ever know (and do) as much as he does :)

  • Need help splitting an incomming audio stream

    Just wondering how I would take streaming audio to a server and broadcast it to connected clients. So far I've created a realized processor taking in the audio stream, but I have a problem when I want to use that processor's data output to send to other users via a list of datasinks. I can use the output for the first datasink.. but then when I try to use the same data output for the next, the original datasink loses the output from the processor. I'm assuming there HAS to be a way to fix this problem (even if it means a whole new algorithm). Thx for any help or suggestions anyone can offer :)

    Thx for the suggestion of forwarding the packets. The boss and I figured that would be the ultimate way to get this server working. Using the forwarding should also lighten the server-load considerably, as you mentioned.
    New problem: I've been looking through the .net and .io components and can't quite figure how to do the forwarding. I've looked through many io classes and none seem to serve exactly that purpose. If you (or anyone for this matter) could point me (even moreso than before) in the right direction that would be very much appreciated. Thx in advance.
    - Kris

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Stream from foreign server possible?

    Hi,
    I urgently need a feedback !
    I need to be 100% sure whether or not the following scenario is possible within Adobe Flash Player / Adome Media Server security contrains:
    website and swf file are hoted on server with given IP number xxx.xxx.xxx.xxx
    media and streaming application are hosted on server with IP number yyy.yyy.yyy.yyy
    generally speaking:
    will yyy media server accept connection from xxx client ?
    will xxx client accept streams from yyy server ?
    I urgently need this information as I need to decide some specific media streaming solution for the customer.
    Of course - I mean both servers being hosted (virtual) services rented by the customer at third party provididers.
    Please feedback asap!
    Thank you!

    Yes this should not be an issue , a client from "xxx" can connect to FMS at "yyy" and stream the data. There should not be problem at both ends.

Maybe you are looking for

  • Home Page Acess Denied

    hai, I have installed oracle 9iAS(Both infracture and database sucessfully) On my main server i can acess the enterprise manager using the url : http://kspcb-pdc.kspcb.com:1810 ( where in all the service components are up) but when i try to acess the

  • F Buttons Question:

    Is there any way to make it so that I can use the F buttons, not the picture shown on them? For example, how could I press F3 to take a picture in War Craft 3 instead of pressing it and making the sound go off? Thanks for the help! Sorry if this goes

  • IDES - Oracle with AIX-License on Windows possible?

    Hello, We have a license for SAP ERP with Oracle on AIX-Basis. But for testing and investigation purposes I want to install IDES on a Windows-basis. Is it possible to get an IDES Windows Oracle Installation with an AIX-license? Or are there other pos

  • Dreaded "An unknown error occurred (-124)" problem

    I've seen various posts on this and related topic, and have tried a few of the suggested solutions without success, so thought I'd post my version to see if anyone can suggest a way to fix this. I have a 30GB video iPod that is about 2 years old. Up

  • Formula totals not working

    These add up correctly: Two formulas Adding Up WhilePrintingRecords; Global NumberVar GrossCededEarn ; if {@ThisLineNo} = "112" OR {@ThisLineNo} = "122" then GrossCededEarn := GrossCededEarn + {@SECTION-SIGNED-AMOUNT}; WhilePrintingRecords; Global Nu