deleolajide / red5phone

Automatically exported from code.google.com/p/red5phone
1 stars 0 forks source link

byteBuffer error with Red5 8.0 and 8.1 #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. move from red5 8.0 RC2 to final 8.0 or 8.1
2. the phone works until the audio streaming begins.
3. then, error ByteBuffer occurs.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Redphone with 8.0 or 8.1 red5 standalone server

Please provide any additional information below.

Original issue reported on code.google.com by cjr@cyf.com.ar on 13 Jun 2009 at 11:34

GoogleCodeExporter commented 8 years ago
In red5 final new Mina library is used. So change ByteBuffer to IoBuffer in 
java 
sources and recompile.

Original comment by Maru.S...@gmail.com on 2 Jul 2009 at 9:33

GoogleCodeExporter commented 8 years ago
maru, thanks for your support, I can't find the place to make the replacement. 
can 
you please be more specific about exactly where to make the replace?
regards,

Original comment by cjr@cyf.com.ar on 2 Jul 2009 at 11:46

GoogleCodeExporter commented 8 years ago
hello cjr, i have the same problem the file is RTMPUser.java, and that is 
here:WEB-
INF\classes\org\red5\server\webapp\sip, 

i think this is the file.

hi maru, i changed the import line and others, but i have one problem, how can 
i 
recompile the project, when i load the project in eclipse i need a lot of 
libraries, 
and that libraries are not in the source, when i checkout the project,

i downloaded that libraries, and add to the project, but i need the last one: 
org.springframework.context.ApplicationContextAware

i don´t know where i can find that package, 

another thing, where is IoBuffer?, i have an error when i change ByteBuffer to 
IoBuffer

thankyou

jaime

Original comment by jalc...@gmail.com on 2 Jul 2009 at 6:02

GoogleCodeExporter commented 8 years ago
jaime, I agree with you, but now:
I can't compile, error:
package org.apache.mina common does not exist
any ideas?

Original comment by cjr@cyf.com.ar on 2 Jul 2009 at 7:45

GoogleCodeExporter commented 8 years ago
all libs are in your red5 server folder.
Libs you need: red5.jar, /lib/slf4j-api-1.5.6.jar, 
/lib/spring-context-2.5.6.jar", 
lib/spring-core-2.5.6.jar, lib/mina-core-2.0.0-M6.jar, 
lib/jcl-over-slf4j-1.5.6.jar

Remove org.apache.mina.common.ByteBuffer import, use 
org.apache.mina.core.buffer.IoBuffer instead.

Original comment by Maru.S...@gmail.com on 2 Jul 2009 at 11:32

GoogleCodeExporter commented 8 years ago
I forgot about external libs. Download also JMF library: 
http://java.sun.com/javase/
technologies/desktop/media/jmf/2.1.1/download.html

Original comment by Maru.S...@gmail.com on 2 Jul 2009 at 11:43

GoogleCodeExporter commented 8 years ago
I'm very close to make it.
only a few errors when compile, here come's the first one:
RTMPUser.java:100: warning: [unchecked] unchecked conversion
found   : org.red5.io.utils.ObjectMap
required: org.red5.io.utils.ObjectMap<java.lang.String,java.lang.String>
ObjectMap< String, String > map = (ObjectMap) 
notify.getCall().getArguments()[0];

so, how can I fix this?
any ideas will be appreciated,
regards,

Original comment by cjr@cyf.com.ar on 3 Jul 2009 at 1:12