bejayoharen / java-bells Goto Github PK
View Code? Open in Web Editor NEWAn implementation of Jingle for Java based on Libjitsi, Ice4J and Smack
License: Other
An implementation of Jingle for Java based on Libjitsi, Ice4J and Smack
License: Other
Maybe refer to code
com.xonami.javaBells.JingleStreamManager->getSupportedFormat
the number of audio channels must be the same for AudioMediaFormat
Tested with
MediaType mediaType = dev.getMediaType(); if (mf.matches(mediaType, payloadType.getName(), payloadType.getClockrate(), payloadType.getChannels(), null)) {//formatParameters is not used by default
and works well
Hi,
First : thank you sharing your code!
I am trying to get it working but I have one issue when calling a jitsi client. Once the jitsi client respons the call, it does not seems to send a packet back to javabellssample. The javabellssample do not react or detect that jitsi took the call.
May have you some experience with this problem?
Best regards,
Frederic
Hello sir,
I am trying to develop a program that let users communicate with etch other in local network using audio, video and Instance message.
First, I compile the source code of java-bells using ant jar command. I got a java-bells-with-deps.jar. After that, I created a java project using Eclipse Juno Service Release 1 and I put this jar in build class path of my project. I created com.xonami.javaBellsSample 's package and I put on it all example from your source code. Finally when I tried to run JavaBellsSample2.java, I got this error
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.xonami.javaBellsSample.JavaBellsSample.main(JavaBellsSample.java:76
Please help?
And thank you
This library is really useful, and has saved me a lot of headache when working with Smack's deprecated jingle API's.
But your samples do not have anything about creating, sending and receiving and Audio message, for which I actually need to use Jingle.
Can you shed some light on as to how do I create, send and receive an audio message? I am using your library for implementing live voice chat module in an existing web application. #
Hi,
While searching for the answers to my question here (http://stackoverflow.com/questions/22756339/newbie-questions-for-jitsi-api ), I came across java-bells.
First of all you have done a very good job on integrating smack, ice4j and Libjitsi, it's commendable.
Right now I am trying to run the sample apps in the java-bells, I have following questions for you:
Also I request you to provide any good references that you followed to understand about ice4j, Libjitsi and video communication over RTP in general.
you can also reply to me on [email protected]
many thanks
Ashish
I work on a MMORPG private server based on Runescape. I have created my own framework which recieves and sends the needfull information to login (Could be found here https://github.com/AdamAliRS/Gielinor-Netty-Framework) I was researching about having voice chat ingame since its multiplayer. Real time conference for every clanchat (Which is for a clan, it's in the name). I was wondering if voice chat could be integrated for every clanchat, so every clan chat will run a new thread for the voicechat and then send the input to the people in the clanchat via the client.
Since, there is no real API's for something like that, I came across this and was wondering if this would be right for what I want to do. Any help is appreciated.
Getting afew errors initially when importing.
http://i.imgur.com/cUz3LCc.png
I was hoping you had these fixed.
Getting this error on testanswer:
[Thread-4] INFO org.slf4j.Logger - [Caller]: connecting to 127.0.0.1
Aug 28, 2013 5:28:42 PM org.jitsi.util.Logger error
SEVERE: Failed to register custom Renderer org.jitsi.impl.neomedia.jmfext.media.renderer.audio.WASAPIRenderer with JMF.
java.lang.NullPointerException
at org.jitsi.impl.neomedia.jmfext.media.renderer.audio.AbstractAudioRenderer.getSupportedInputFormats(AbstractAudioRenderer.java:159)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1064)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.(DeviceConfiguration.java:368)
at org.jitsi.impl.neomedia.MediaServiceImpl.(MediaServiceImpl.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:132)
at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:115)
at com.xonami.javaBells.JingleStreamManager.addDefaultMedia(JingleStreamManager.java:55)
at com.xonami.javaBellsSample.JavaBellsSample$3.run(JavaBellsSample.java:310)
Aug 28, 2013 5:28:42 PM org.jitsi.util.Logger error
SEVERE: Failed to register custom Renderer org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer with JMF.
java.lang.UnsatisfiedLinkError: no jnawtrenderer in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.(JAWTRenderer.java:90)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1060)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.(DeviceConfiguration.java:368)
at org.jitsi.impl.neomedia.MediaServiceImpl.(MediaServiceImpl.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:132)
at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:115)
at com.xonami.javaBells.JingleStreamManager.addDefaultMedia(JingleStreamManager.java:55)
at com.xonami.javaBellsSample.JavaBellsSample$3.run(JavaBellsSample.java:310)
Caller: java.io.IOException: Failed to bind even a single host candidate for component:Component id=1 parent stream=audio
no local candidates.
no remote candidates. preferredPort=8938 minPort=8938 maxPort=9038
java.io.IOException: Failed to bind even a single host candidate for component:Component id=1 parent stream=audio
no local candidates.
no remote candidates. preferredPort=8938 minPort=8938 maxPort=9038
at org.ice4j.ice.harvest.HostCandidateHarvester.harvest(HostCandidateHarvester.java:172)
at org.ice4j.ice.Agent.gatherCandidates(Agent.java:441)
at org.ice4j.ice.Agent.createComponent(Agent.java:349)
at com.xonami.javaBells.IceAgent.createStream(IceAgent.java:233)
at com.xonami.javaBells.IceAgent.createStreams(IceAgent.java:80)
at com.xonami.javaBellsSample.JavaBellsSample$3.run(JavaBellsSample.java:313)
Did I miss something???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.