0 Replies Latest reply: Jan 3, 2013 6:30 AM by 982710 RSS

    javax.media.NoDataSourceException:Cannot find a DataSource for

    982710
      Hello

      I'm using JMF for video streaming and window 64 bit system with jdk 1.7.0 , I have written the sample code for the same. following line of code throwing the exception

      DataSource ds = Manager.createDataSource(new MediaLocator("C:\\Users\\Windows\\Desktop
      MakeUp.mov"));

      Exception is :

      javax.media.NoDataSourceException: Cannot find a DataSource for: MakeUp.mov
      at javax.media.Manager.createDataSource(Manager.java:1037)
      at com.bcook.VideoTransmit.createProcessor(VideoTransmit.java:82)
      at com.bcook.VideoTransmit.start(VideoTransmit.java:40)
      at com.bcook.VideoStream.capsendBtn_ActionPerformed(VideoStream.java:235)
      at com.bcook.VideoStream$SymAction.actionPerformed(VideoStream.java:201)
      at java.awt.Button.processActionEvent(Button.java:409)
      at java.awt.Button.processEvent(Button.java:377)
      at java.awt.Component.dispatchEventImpl(Component.java:4860)
      at java.awt.Component.dispatchEvent(Component.java:4686)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
      at java.awt.EventQueue.access$000(EventQueue.java:101)
      at java.awt.EventQueue$3.run(EventQueue.java:666)
      at java.awt.EventQueue$3.run(EventQueue.java:664)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:680)
      at java.awt.EventQueue$4.run(EventQueue.java:678)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

      Please let me know what is going wrong here

      Regards..
      -Gajanan