Re: Problem in playing audio/video from server to client using RTP and RTSP.

Take a look through the links listed here
http://forum.java.sun.com/thread.jspa?threadID=5151618&tstart=0
try the sample applications - use bits fom them to build your aown App & post up any quetsions / problems you get as you go along
And this link has some sample code you can look at to get the basics
http://forum.java.sun.com/thread.jspa?messageID=9573675

hello,
1) if you want to develop a distributed application with XML messages, you can look in SOAP.
it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
examples :
a client method to send a message to the server :
public void send(String message)
fluxOut.println(message);
fluxOut.flush();
whith
connexionCourante = new Socket(lAdresServeur, noPort);
fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
a server method in a thread to receive and print the message :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
System.out.println(texte);
that's all ! :)
If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
ex :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
// to stop
if (texte.equals("@end"))
{break;}
processMessage(texte );
hope it will help you
David

Similar Messages

  • Playing a video on a 4400 DMP using HTML and video stored on webserver?

                 I've created a PHP script to allow our users to mange their own content make their own playlists without them having to use our DMM. The script gets inputs from them for things like images and URL's and how long it will display those items. It then writes another PHP file which I set as the lone playlist item in the DMM. This way they can make changes at will with no chance of breaking anything in the DMM. The script basically just rotates their images and scripts by changing the inner.html of the body on the page. I have URL's and images working fine. I need to get videos working in the same manner. This means I need to be able to point to an HTML file on our webserver that plays a video that is also stored on that webserver. I thought I'd found a solution but there's one problem I can't get around. There are some references to playing through a javascript library tivella.js . The problem is that every reference I find seems to that script shows the DMP accessing it internally <src="tivella/tvzilla/js/tivella.js">  Is there a way for an external HTML file to reference this js file?  Is there a way to copy that JS file to my web server?  Are there any other options to play a video through HTML vs. as a playlist item on the DMM? 
    Dave

    Dave,
    Not sure if the larger subset audience over here have tried what you are trying to configure but have looked at
    https://supportforums.cisco.com/docs/DOC-14752, This document has a Java script/HTML code that allows you to play content stored locally on the DMP storage. May be you can utilize the code there and reference the local video URL with your HTTP URL.
    Also the tivella is a Web browser in the DMP it will render the Web content fine but you may want to utilize the media player function for displaying the video - just a thought.
    Thanks,
    Sagar Dhanrale

  • Sending XML messages from server to client using POST method

    Dear everyone,
    I have a simple client server system - using Socket
    class on the server side and URLConnection class on
    the client side. The client sends requests to the
    server in the form of an XML message using POST method.
    The server processes the request and responds with
    another XML message through the same connection.
    That's the basic idea.
    I have a few questions about headers and formats
    especially with respect to POST.
    1. In what format should the response messages from the
    server be, for the client? Does the server need to
    send the HTTP headers - for the POST type requests?
    Is this correct?:
       out.println("HTTP/1.1 200 My Server\r");
       out.println("Content-type: text/xml\r");
       out.println("Content-length: 1024\r");
       out.println("\r");
       out.println("My XML response goes here...");2. How do I read these headers and the actual message
    in the client side? I figured my actual message was
    immediately after the blank line. So I wrote
    something like this:
       String inMsg;
       // loop until the blank line is through.
       while (!"".equals(inMsg = reader.readLine()))
          System.out.println(inMsg);
       // get the actual message and process it.
       inMsg = reader.readLine();
       processMessage(inMsg);But the above did not work for me. Because I seem to
    be receiving a blank line after each header! (I suppose
    that was because of the "\r".) So what should I do?
    3. What are the different headers I must pass from
    server to the client to safeguard against every
    possible problem?
    4. What are the different exceptions I must be prepared
    for this situation? How could I cope with them? For
    example, time outs, IOExceptions, etc.
    Thanks a lot! I appreciate all your help!
    George

    hello,
    1) if you want to develop a distributed application with XML messages, you can look in SOAP.
    it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
    2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
    examples :
    a client method to send a message to the server :
    public void send(String message)
    fluxOut.println(message);
    fluxOut.flush();
    whith
    connexionCourante = new Socket(lAdresServeur, noPort);
    fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
    a server method in a thread to receive and print the message :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    System.out.println(texte);
    that's all ! :)
    If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
    ex :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    // to stop
    if (texte.equals("@end"))
    {break;}
    processMessage(texte );
    hope it will help you
    David

  • HT201317 How do I sync video from ipad to computer using Lion and iphoto 9.4.2

    I have new Mini Ipad and newest version of iphoto, Lion O/S.  Photo stream does not transfer video from ipad to computer.  Transfer app very slow and does not always work even though all devices and Wi Fi 5 feet from each other.  What other method can I use.  

    Connect it to your computer using a USB cable and import any video into iPhoto.

  • Unable to open docs from server on iPad using IOS6 and iWork

    Since upgrading to IOS6 in ipad 2, when I log on to my work network and try to open Excel, Word or Powerpoint files in Numbers, Pages or Keynote apps respectively, nothing happens. Prior to IOS6 upgrade I could open anything and edit etc. Now the open in screen appears and when I press open in numbers, pages or keynote depending on file type, nothing happens. So I can't access any of my work files.
    I bought my ipad to do work on, and now I can't do any work on the go rendering my ipad useless! Any ideas when or if Apple are aware of this major issue and whether if it will be sorted out???
    At a loss really.

    Hi Hengye,
    While opening , it dont give any error. When I try to open it , it takes some time to load then nothing happen.However I can open it on other system but not on mine my collegue and user system.
    Please advice.
    Thanks.

  • How can i transfer more than one file from server to client

    Hi,
    our requirement is transfer more than one files from server to client using the
    webutil_file_transfer.as_to_client_with_progress.One file transfer is already working in our system.If anybody know the solution please inform
    regards
    mat

    just an idea ...
    for this purpose let us put aside security concerns and other potential problems....
    -- Get the content of a server directory with Filter and create zip file
    1) create a class that implements java.io.FilenameFilter ...
    2) define accept() method ...
    3) call File.list() with the filter as a parameter. The returned array of strings will have all the names that passed through the accept() filter
    4) use java.util.Zip to create ZIP file on the server side
    -- I think it is better to create this functionality as a separate Java class, put it in required folder and after it
    -- use Forms->Program->"Import Java class" to create pl/sql wrappers, than to create wrappers for all classes and code in pl/sql
    5) use webutil to transfer file on the client
    6) use Java on client side to unzip transferred file
    if you think this is not too complicated, you should try ...
    Regards,
    Vladimir

  • Move files from server to client

    I have create txt file in server directory using UTL_FILE package,
    and I put in the directory in server.
    Server platform is linux. and client platform in Windows.
    What I want to ask is there any possibilities to copy that file from server to client using pl/sql ? could all of you "The Gurus" give me a script example ?
    Thanks a lot.
    regards,
    indra

    > What I want to ask is there any possibilities to copy that file from server
    to client using pl/sql
    No. Not really.
    Think about it.. the file is on the server. PL/SQL code executes inside the Oracle server session that is servicing the client.
    Just how is PL/SQL (on the server) suppose to reach out and push that file to a client's file system and directory?
    PL/SQL cannot do this. You need something on the client that will accept the file. You need something in-between the client and PL/SQL that will handle the transfer of the file. This something can be ftp, scp, tftp, NetBIOS etc.
    Anyway you look at this, it does not make sense. You are turning the server into the client that needs to push the file. You are turning the client into a server that needs to accept the file.
    Why? This is contrary to the basic client-server RDBMS architecture. You are adding more complexities and more moving parts to the architecture by forcing a swap of client and server roles. The are now a far greater likelihood of errors and bugs and failures.
    It does not make sense to do it this way.
    What is the business requirement you are trying to satisfy? Instead of us trying to help you to hack a flawed solution, let us rather assist you in determining the correct and proper solution.

  • I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    You're welcome. As to checking speed go to http://speedtest.net/ and it will choose the closest server for you. BTW, whatever you do, don't click on the robot icon that says "Start Scan" or MacKeeper below that. Only use the speed test in the middle that has the button BEGIN TEST on it. It will run a download speed test first and then an upload speed test. The download test will give a much faster response.

  • I am having problems playing my videos from my iphone on my laptop

    I have an iphone 5. I have not yet updated to ios 7. I am having problems playing my videos from my iphone on my laptop. the sound is jumpy and the playback is slow/jumpy. i have tried various players but none seem to be able to play back properly. Help!

    Hello Bagpus113
    Check out the article below to troubleshooting issues with the sound for music and for videos. One other thing you can try is to convert the songs to a different format
    iTunes and QuickTime for Windows: Audio does not play or plays incorrectly
    http://support.apple.com/kb/TS1362
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    iTunes: How to convert a song to a different file format
    http://support.apple.com/kb/ht1550
    Regards,
    -Norm G.

  • There are error message "No such interface supported" when play Audio/Media from USB thumb disk with Metro APP like Xbox.

     There are error message "No such interface supported" when play Audio/Media from USB thumb disk with Metro APP like Xbox in windows. how can I solve this problem?   if I use destop player like windows media player, no such error.
    would you please give some solution for this error? thanks!

    OS is window10, Metro APP is Xbox or MultiMedia 8; any video format will occur error only by following steps:  
    a. Put Audio / Media / Photo files into USB thumb disk or Micro SD card.
    b. Connect USB thumb disk / Micro SD Card  to Platform.
    c. Open 'File Explorer', click USB thumb disk.
    d. Open audio file with metro app: Music. / Open Media file with metro app: Video./Open Photo file with metro app.

  • Dear All, I can't play flash videos from any web site through firefox because it freezes but when i run firefox as administrator then it works fine (But Google Chrome Plays all videos normally.) . I am using Windows 7 & Firefox 7.0.1. Please help

    Dear All,
    Firefox hangs when i try to play flash videos from any site but when i run firefox as administrator it works fine. (but Google Chrome, Opera & I.E9 Plays videos without running as administrator.) I am using Windows 7 & Firefox 7.0.1. Please help.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • HT4437 Can I play a video from the remote app onto apple tv whilst simultaneously stra,ing music to other speakers via express?

    Can I play a video from the remote app onto apple tv whilst simultaneously stra,ing music to other speakers via express?

    Thank you for that, I wanted to make sure I was trying to replicate the same thing as you. Just tried it now, works fine for me.
    Of note though, this will take a relatively well performing network to achieve this, I have such a network, if your network is not as good as it might be, you might encounter problems.
    For the avoidance of doubt, I used the remote app on my phone to get my iTunes library on my computer to stream music to 3 of my Apple TVs, I then used the remote app to control another Apple TV and get it to stream a music video from my computer to it. Of interest I managed to do this while my wife was using yet another Apple TV (not with the remote app) to watch something else from iTunes on my computer.

  • I recently installed Java 6 update 33, and adobe flash player 11 plugin, and now can't play any videos from any website in Mozilla, but Google Chrome works.

    Cannot play any video from any website in Mozilla after installing Java 6 update 33, and adobe flash player 11 plugin. However, I can play videos from Google Chrome and also from Internet Explorer. For example, when I'm trying to play a you tube video in Mozilla, a black screen comes up with following error message: "An error has occurred. Please try again later."
    (This is like the Wizard of Oz -- when the man comes to the little window in the door and says to Dorothy, "Come back tomorrow." )

    This may be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/keep-flash-up-to-date-and-troubleshoot-problems
    *https://support.mozilla.org/kb/flash-crashes-or-does-not-load-firefox-13
    *http://forums.adobe.com/thread/1018071?tstart=0
    *http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html

  • When I try to play a video from facebook or you tube it says blocked plug in

    When I try to play a video from Facebook or Youtube, it says blocked plug in. How do I unblock this?

    I wonder why the download doesn't last very long.
    Flash has a reputation of being really sloppily written, and full of Hacks (which are potential places to cause problems). Mac OS X blocks outdated versions automatically when a better one becomes available.
    Update Flash Player (using its own Control Panel) or download ONLY from this site:
    http://get.adobe.com/flashplayer/
    The current version at this writing is 16.0.0.235, (but may be different by the time you read this).

  • Cant  play  any  videos  from  you  tube  and  dailymotion

    hello  i  have  upgraded  from  win  to  windows  8 pro  x64.i  have  the  next  problem:i  cant play  any  video  from  you   tube  and  dailymotion  with  IE  10,with   firefox  i  have  not  any  problem.what  can  i do?

    Have you been able to successfully import these videos into iTunes?  If so, use iTunes built in converter to convert it to a more iTunes friendly format. To do this, highligh the video and choose "Create iPhone or iPod version" from the Advanced drop down menu in iTunes.
    When it has finished converting, try syncing the new version to your Nano.
    B-rock

Maybe you are looking for

  • After installing Mavericks my Excel 2011 crashed

    After installing Mavericks my Excel 2011 crashed: many add ins won't work properly and the short keys are not working either. What can I do? I need all the add ins for my study and it doesn't work anymore.

  • Oracle 11g Certification and Workshop Requirement

    Hello, I have recently cleared below Oracle Exams. 1Z0-051 (SQL Fundamentals) 1Z0-052 (Oracle 11g Admin I) 1Z0-053 (Oracle 11g Admin II) - Cleared in May 2013 I haven't completed the Workshop requirement which indicates I am not OCP as of now. Questi

  • How to display the o/p based on i/p in mpp

    Hi frnds, IN MPP, use 2 tables ztest1, ztest2 Input fields :repno, plant, date, material (but date is get from user others are get from ztest1 table) in ztest1some records is their(es repno=100 etc,) Giver the repno then press "ENTER" button display

  • Extracting SAP Query,Infoset  Data from VB Application

    Hi, I need to get all SAP Queries,Infosets and SAP Query Group data from a VB application. I have found a Remote Enabled Function called    IQAPI_READ_QUERY_CATALOG. But when I call the Function from a VB application ,the call is not successful and e

  • Proper counter for logical processors

    Under Task Manager, there is an option to view logical processors as seen in the image attached below. Problem is that I would like a more accurate to monitor it, maybe via the Performance Monitor, but I could not find any matching counter for this.