[jitsi-dev] Running libjisi examples


#1

Hi all,

I have tried to get the examples from libjitsi running and found some
confusing inconsistencies in the the usage description. Namely, the ARGS
array in the AVReceive2 class contains wrong parameters descriptions (I
think it is a copy-paste from the transmit class). Those should be
substituted by the comments to the respective parameters - they are correct.

Trying to run examples as proposed in a comment in the main method:
//java org.jitsi.examples.AVReceive2 --local-port-base=10000
--remote-host=129.130.131.132 --remote-port-base=5000

fails, with the Exception
java.lang.UnsatisfiedLinkError: no jnawtrenderer in java.library.path,
because, as one can find out from the run-examples target in build.xml
file, the following should be added to the classpath:
"lib/native/linux-64:lib/native/linux:lib/native/mac:lib/native/windows-64:lib/native/windows"
This should be probably added to the "java
org.jitsi.examples.AVReceive2..." comment mentioned above.

Executing the aforementioned run-examples target also does not work out of
the box, because run.example.name and run.example.arg.line parameters are
missing. So, for everyone struggling to start the examples, try the
following:
add to the build.xml file:

<property name="run.example.name" value="AVReceive2"/>
<property name="run.example.arg.line" value="--remote-host=127.0.0.1
--local-port-base=10000 --remote-port-base=5020"/>

Execute ant run-example. The receiver should start on the specified port.
Modify the run.example.name and run.example.arg.line properties as follows:

<property name="run.example.name" value="AVTransmit2"/>
<property name="run.example.arg.line" value="--remote-host=127.0.0.1
--remote-port-base=10000 --local-port-base=5020"/>

Execute ant run-example again. The transmitter should connect to the
previously started receiver and do it's job during the next 60 seconds.

I understand that those issues are not critical, nevertheless examples
being something people would probably try out first makes it somewhat
complicated to start using the library.

Regards,
Alexander Fedulov


#2

Hi all,

I have tried to get the examples from libjitsi running and found some confusing inconsistencies in the the usage description. Namely, the ARGS array in the AVReceive2 class contains wrong parameters descriptions (I think it is a copy-paste from the transmit class). Those should be substituted by the comments to the respective parameters - they are correct.

Trying to run examples as proposed in a comment in the main method:
//java org.jitsi.examples.AVReceive2 --local-port-base=10000 --remote-host=129.130.131.132 --remote-port-base=5000

fails, with the Exception
java.lang.UnsatisfiedLinkError: no jnawtrenderer in java.library.path,
because, as one can find out from the run-examples target in build.xml file, the following should be added to the classpath:
"lib/native/linux-64:lib/native/linux:lib/native/mac:lib/native/windows-64:lib/native/windows"
This should be probably added to the "java org.jitsi.examples.AVReceive2..." comment mentioned above.

Thank you, Alexander! r9861 tries to address the issues you've reported above.

Executing the aforementioned run-examples target also does not work out of the box, because run.example.name and run.example.arg.line parameters are missing. So, for everyone struggling to start the examples, try the following:
add to the build.xml file:

build.xml does not assign values to the Ant properties run.example.name and run.example.arg.line because there is no specific value for any of them to hardcode it to. We specify them on the command line as part of the invocation of Ant.

<property name="run.example.name" value="AVReceive2"/>
<property name="run.example.arg.line" value="--remote-host=127.0.0.1 --local-port-base=10000 --remote-port-base=5020"/>

Execute ant run-example. The receiver should start on the specified port.

Alternatively, do not modify build.xml and execute the Ant target run-example as follows:

ant run-example -Drun.example.name=AVReceive2 -Drun.example.arg.line="--remote-host=127.0.0.1 --local-port-base=10000 --remote-port-base=5020"

Modify the run.example.name and run.example.arg.line properties as follows:

<property name="run.example.name" value="AVTransmit2"/>
<property name="run.example.arg.line" value="--remote-host=127.0.0.1 --remote-port-base=10000 --local-port-base=5020"/>

Execute ant run-example again. The transmitter should connect to the previously started receiver and do it's job during the next 60 seconds.

ant run-example -Drun.example.name=AVTransmit2 -Drun.example.arg.line="--remote-host=127.0.0.1 --remote-port-base=10000 --local-port-base=5020"

ยทยทยท

On 20.09.2012, at 15:13, Alexander Fedulov <ijustwanttoregister@googlemail.com> wrote: