Enviando Voz

1 resposta
R

Bom dia galera,

Bom, ainda estou no projeto de voip e o pior que sozinho, portanto tenho apenas vc’s para recorrer.
Como está o projeto atualmente, eu pego a entrada do microfone e envio para um arquivo, sem fechar o arquivo eu tento manda-lo via RTP, mas me retorna vários erros.
Estou postando o meu código, e os erros:

Codigo:

Erros:

<blockquote>

Exception in thread AWT-EventQueue-0 java.lang.NullPointerException

at com.sun.media.rtp.RTPSessionMgr.createSendStream(RTPSessionMgr.java:1098)

at com.sun.media.rtp.RTPSessionMgr.createSendStream(RTPSessionMgr.java:1262)

at CapituraSom3.envia(CapituraSom3.java:266)

at CapituraSom3.actionPerformed(CapituraSom3.java:164)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)</blockquote>

Valeu pela ajuda galera.

[]'s

1 Resposta

thadeurc

Fala ae vanucci!!

cara… da uma olhada neste link que acho que vai te ajudar…

http://java.sun.com/developer/community/chat/JavaLive/2000/jl0118.html

[]´s

Criado 29 de abril de 2005
Ultima resposta 29 de abr. de 2005
Respostas 1
Participantes 2