Video not played using JMF while tramitting stream over RTP

video not played using JMF while tramitting stream over RTP
I am using code to tranmit video using RTP using JMF and i am able to successfully get the video on client side
Code to send the video over rtp
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit2.java
code to recieve video over rtp
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html#source
My problem is i am not able to play video in AVTransmit2.java.
If i create a player using datasouce, eigther i get player already occupied or a black screen.
please help me running the video on Transmit side as well.
NOTE: i am using web cam for video source
Edited by: qasitouch on Dec 23, 2009 5:55 AM

I am not getting any error on consol, rather video is not displayed on media screen but black rectangle.
On Transmitter
     // Try to create a processor to handle the input media locator
     processor = Manager.createProcessor(ds);
createPlayer(Manager.createCloneableDataSource(ds)); // here i am craeting a player to show the video on transmitter end aswell.
Player code:
     private void createPlayer(DataSource ds) {
          try {
               Player player;
               if(processor!=null)
                    System.out.println("processor: " + processor);
                    player = processor;
               }else{
                    System.out.println("null is processor");
               player = Manager.createRealizedPlayer(ds);
               Component video = player.getVisualComponent();
               JFrame mediaFrame = new JFrame("Camera Screen");
               mediaFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
               mediaFrame.add(video);
               mediaFrame.setSize(300, 300);
               mediaFrame.setVisible(true);
               player.realize();
               player.start();
               player.prefetch();
          } catch (NoPlayerException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (CannotRealizeException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (NotRealizedError e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (Exception e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
I am not getting any error and not running on the same side. My problem is showing video on Tranmitter end.
Using above code i can create player and a black screen is showing, i am ubable to find, why video is not played in screen.

Similar Messages

  • Not able to recognize any video/audio devices using jmf and java soun

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

  • I'm running Windows XP and FF 8.0. I'm having more trouble than ever with intermittent streaming and videos not playing all the way through. What is the easiest way to fix this?

    . I'm running Windows XP and FF 8.0. I'm having more trouble than ever with intermittent streaming and videos not playing all the way through. What is the easiest way to fix this?

    That may be a problem with the VLC plugin. VLC has never worked for me properly on the occasions that I've tried it on Windows and Linux, so I have stop using it. There are usually other plugins or media players available that work better.
    What kind of media files are that?
    For WMP files you can install the new Windows Media Player plugin you can also try RealPlayer and QuickTime if it is about media that those programs can handle to see if that works better.
    * https://support.mozilla.com/kb/Using+the+Windows+Media+Player+plugin+with+Firefox
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    * http://www.interoperabilitybridges.com/windows-media-player-firefox-plugin-download

  • When using ipad4, why do videos not play on Google?  Audio works fine

    WWhen using ipad,why do videos not play on Google? Audio still plays. I have reset the Google app and it will be ok for short time but then reverts back to not playing videos.

    Hi Vernon70,
    Welcome to the Apple Support Communities!
    I understand that an application you downloaded from the App Store, Google, is not functioning as you would expect. In this situation, I would recommend following the troubleshooting steps outlined in the attached article. 
    If an app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Best regards,
    Joe

  • Why are my videos not playing the right way up

    Why are my videos not playing the right way up

    I took four video clips while on a trip this week.  Two are oriented the right way (playing wide on the device and imported correctly).  The other two are Tall and not oriented right.  Orientation is 90 degrees to the right.  I don't know why this is happening on occasions.  Even some pictures I took did the same **** thing.  It's weird.  And I can't figure it out.  The camera is held the way I want the pictures and videos to be recorded and played but something internal is turning these videos and pictures 90 degrees clockwise.

  • Video not play on phone

    Mp3 play but video not play my phone
    my Email add. [email protected]
    Moderator's note: E-mail address was removed. Please don't publish your personal contact information on a public forum.

    sharankumar1, which phone model do you use? Nokia phones are a bit picky about the file content, the codec. If you tell me your model, I tell you the available codecs. In the meantime, you have to convert your videos …

  • Facebook videos not playing on iPad Air(safari browser)

    Why do my Facebook videos not play in iPad Air(safari browser) but same video play nicely on iPhone 4(safari browser). It asks me to download flash player to play on iPad but plays fine on iPhone without giving any prompt to download flash player.

    You should not have trouble playing using the FaceBook app.

  • Embedded MP4 videos not playing in iOS Safari

    Hi everyone,
    I'm having a problem with embedded MP4 videos (e.g. YouTube videos) not playing correctly in Safari. When I try to play one, I get one of two problems:
    1. On my (first gen) iPad, Safari usually crashes.
    2. On my iPhone 4, videos will load but only play audio, not video, though when I tap on the screen the "play" and "pause" symbols appear.
    Has anyone else run into this problem? Or know how to fix it?
    Thanks,
    Mike

    Ok, I fixed it. Go to some embedded Flash video, click to run and then right click to get Global Settings for Flash. Go into Storage and make sure you aren't blocking any data from being stored on your computer. At the very least choose the "ask me" setting. (For good measure I also went into Advanced and clicked to Delete All Data associated with Flash. But when I restored Block for data storage the videos stopped working, so that seems to be the answer.) I'd be interested to hear if this works for others.

  • U310 Touch - Videos not playing after 8.1 Update

    Hello,
    I have updated from Windows 8 to 8.1 and updated all my drivers on my U310 Touch.
    However, I seem to have a problem with web based videos not playing videos on the internet.
    This seems to happen on every kind of web browser, including IE, Firefox, Chrome, and even Steam.
    If anybody knows how to fix this problem, that'll be great.
    Thanks in advance.

    Since the upgrade to 8.1.1 my iPhone 6 stopped recognising the fingers I had stored. I've deleted and addrd them again (which went as norma) and it still has problems recognising them. Seems very intermittent now, whereas before this upgrade was very reliable.
    I've  reverted to a pin code :-(

  • Yahoo video and other video not playing

    Yahoo and other video not playing in firefox 37.0.2
    They played automatically 5 days ago....since then video screen is blank...no 'play' button
    I have updated Flash several times
    Tried to play these videos on IE....don't play there either.
    Thanks for your help!

    Note that your System Details List shows multiple Flash plugins.
    # Shockwave Flash 15.0 r0
    #Shockwave Flash 17.0 r0
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
    You can find the latest Flash player versions for Firefox on this page:
    *http://www.adobe.com/special/products/flashplayer/fp_distribution3.html

  • You tube videos not playing

    You tube videos not playing on safari, my flash player is up to date, i tried to refresh, quit safari, again tried to play, but every time it shows "an error has occurred, please try again later". I did almost everything to make it work but its not working... help needed

    Try deleting the cache and cookies for YouTube.

  • DVDSP Help - Video not playing in Viewer during some assets, only audio...

    Video not playing in Viewer during some assets, only audio until paused. once you hit the space bar or pause, the video shows up in viewer? same results when burnd to disc.
    when dragging cursor through out timeline (track 1) video shows up in viewer fine too.
    any advice on what could be wrong?
    at first i was thinking this was a memory problem, i added another Gig of ram and the problem still exhists.
    thanks!

    Hi Crazy Dan:
    It's a kind of bug in DVDSP Simulator. If you build your project in your hard drive and test it with DVD Player all video will play fine.
    I would like to tell you where exactly the problem is located, but it's just a Simulator problem.
    Try building your project.
    Hope that helps !
      Alberto

  • Specific Music Files Not Playing Using Shared Playlists

    I have over 3600 music files in my collection, and of those, about 44 will not play using the shared playlist on other machines. There is nothing between the files that is common that I can decipher. Some are *.m4a files, some are *.mp3 files. However, all will play in iTunes on the host machine and will play fine on the myriad of iPods that I have. If an attempt to play is made, the song information comes up in the heading on iTunes (song name, duration, album, etc...), but the song never starts playing. Any help or insight would be most appreciated.

    Hi
    What happens when an agent puts a caller on hold is nothing to do with the UCCX server, prompts on the UCCX server, etc...
    What is played is controlled by the 'User Hold Network Source' configured on the agent's line, handset, device pool etc; and which MoH server it is played from is determined by the MRGL assigned to the 'listening' device (e.g. gateway typically).
    Regards
    Aaron
    Please rate helpful posts..

  • HT201077 What causes videos not playing in photo stream?

    Videos in my shared photo stream will not play they will load for a while then play for a second and stop. Anyone know how to fix this?

    Welcome to the Apple Community.
    Are they still uploading.

  • Why does my video  not play while audio does?

    Using iMovie 9 found that after bringing a clip from clips pane into my project that I could no longer insert or edit the project. The green insert cursor remained but all was frozen. After quitting, video clips in project pane will not play while audio (both audio from the actual clips and music) does play. When mouse hovers/scrubs over the clips in the project pane the video clips do come alive but not when i press space bar or play buttons (play full screen /play project from beginning buttons) in bottom left of window. Strangely video in clips pane do play when I press space bar.
    I tried creating a new project and importing clips but no video will play. Same thing applies to all my imovie projects. Another strange thing, the other projects will play when I click on Play Fullscreen button but not my most recent project. Instead, when I click Play full screen button the Last (ie. last in alphabeitical order) of my projects plays instead!
    I would really appreciate some help with this. Have spent a lot of hours on the project and seems like I can't even start again.  

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

Maybe you are looking for

  • Ap_vendor_pub_pkg.update_vendor_site API is not updating a field

    Hello I want to update the Calculate Tax field on the supplier site level. I am using the ap_vendor_pub_pkg.update_vendor_site API to update the ap_supplier_sites_all.auto_tax_calc_flag field. But the API does not update the field. I want to change t

  • Airport Extreme no longer see's Epson R320 Printer

    All of a sudden i cannot print through Airport, i have to plug into USB port on my Mac Pro. If I try to print over the network its shows my printer offline. Any ideas.

  • Need help with digital photos that turn fuzzy in Final Cut Pro 5

    I read the whole thread on using still pictures in FCP 5 without finding a solution to the problem I am having these days. The digit pictures I am using are all around 1632 x 1232 pixels (230 dpi), they are about 43.8% after I drop them onto the time

  • Include comment or legend in a column in a query

    Hello Experts, I have a problem  due to I need to show a comment or legend in some column header in a query include in a Wad in BW, And I don't know if this is posible.Could you help me, please?. For example if the column is labeled as  production I

  • How to Propram

    I devlop a software using Developer 2000, during entry i need sum of the existing and newly enterd values, i made it to first save in a table, but meanwhile operator makes an error and whishes to re-correct the entry that has been alredy saved, what