[jitsi-dev] Unable to add G.729 support


#1

I installed the latest nightly .DEB of Jitsi since I was unable to create a
.DEB from latest source code by myself.

The idea is to enable G.729 support, so I modified libjitsi source (taken
from github) to enable it
on src/org/jitsi/impl/neomedia/codec/EncodingConfigurationImpl.java:

public static final boolean G729 = true;

After compiling libjitsi, I tried to simply replace the
EncodingConfigurationImpl.class file into
/usr/share/jitsi/sc-bundles/libjitsi.jar

But, after doing that, G.729 doesn't appear yet in the list of Encodings
when running Jitsi.

If I replace the whole libjitsi.jar with the modified one, Jitsi doesn't
starts at all.

I should be omitting something I don't know yet, because if I do the same
procedure but by building jitsi from source, not installing .DEB, and I run
"ant run" then G.729 does appears between encoding list.

Any idea?

···

--
*Jonathan Vargas Rodríguez*
IT Business Solution Developer
Alkaid · Open Source Business Software
Office: 2553 5467, Mobile: 8320 0549
Web: alkaid.cr | E-mail: jvargas@alkaid.cr

*Your business needs + Our technical skills = Benefits. That's my job.
Don't be afraid to contact me* :slight_smile:


#2

Hello,

···

On 17/04/14 01:47, Jonathan Vargas wrote:

I installed the latest nightly .DEB of Jitsi since I was unable to
create a .DEB from latest source code by myself.

The idea is to enable G.729 support, so I modified libjitsi source
(taken from github) to enable it
on src/org/jitsi/impl/neomedia/codec/EncodingConfigurationImpl.java:

public static final boolean G729 = true;

After compiling libjitsi, I tried to simply replace the
EncodingConfigurationImpl.class file into
/usr/share/jitsi/sc-bundles/libjitsi.jar

The file sc-bundles/libjitsi.jar is generated from the contents of
lib/installer-exclude/libjitsi.jar (and other files) when you rebuild.
You need to modify lib/installer-exclude/libjitsi.jar and then
regenerate sc-bundles/libjitsi.jar using 'ant bundle-libjitsi'.

Regards,
Boris


#3

Thank you so much Boris. Now it works as I expected. Did not know about
this.

*For the record:*

   1. Install a Jitsi's nightly .deb
   2. Get libjitsi source code
   3. Modify EncodingConfigurationImpl.java
   4. Build with "ant jar"
   5. Get jitsi source code
   6. Copy modified libjitsi.jar into lib/installer-exlude on jitsi source
   code
   7. Run "ant bundle-libjitsi" into jitsi source folder
   8. Copy generated sc-bundles/libjitsi.jar into
   /usr/share/jitsi/sc-bundles

···

2014-04-17 1:28 GMT-06:00 Boris Grozev <boris@jitsi.org>:

Hello,

On 17/04/14 01:47, Jonathan Vargas wrote:
> I installed the latest nightly .DEB of Jitsi since I was unable to
> create a .DEB from latest source code by myself.
>
> The idea is to enable G.729 support, so I modified libjitsi source
> (taken from github) to enable it
> on src/org/jitsi/impl/neomedia/codec/EncodingConfigurationImpl.java:
>
> public static final boolean G729 = true;
>
> After compiling libjitsi, I tried to simply replace the
> EncodingConfigurationImpl.class file into
> /usr/share/jitsi/sc-bundles/libjitsi.jar

The file sc-bundles/libjitsi.jar is generated from the contents of
lib/installer-exclude/libjitsi.jar (and other files) when you rebuild.
You need to modify lib/installer-exclude/libjitsi.jar and then
regenerate sc-bundles/libjitsi.jar using 'ant bundle-libjitsi'.

Regards,
Boris

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
*Jonathan Vargas Rodríguez*
IT Business Solution Developer
Alkaid · Open Source Business Software
Office: 2553 5467, Mobile: 8320 0549
Web: alkaid.cr | E-mail: jvargas@alkaid.cr

*Your business needs + Our technical skills = Benefits. That's my job.
Don't be afraid to contact me* :slight_smile: