Red5 1.0 RC2 backward compatibility

Latest red5 versions ( Red5 revision > 4326 like 1.0 RC2+) bring changes that make red5 incompatible with older applications.
Changes are required for these applications to work.

Updated VideoWhisper rtmp applications can be downloaded for use or as sample to update other applications.

 

This is covered in Red5 google group:

With revision 4326 you will see problems when building or running your applications with Red5. Most of the problems you’ll run into

are with missing classes; in most cases you can just add the “scope” package to your imports or run “Optimize imports” in Eclipse. Below I have addressed a few items that you may run into.

 

 
1. IScope cannot be resolved to a type

– Update red5 jar or source with latest

– Correct location of IScope is org.red5.server.api.scope.IScope, previously it was org.red5.server.api.IScope

 
2. The import org.red5.server.api.IScope cannot be resolved

– Update red5 jar or source with latest

– Correct location of IScope is org.red5.server.api.scope.IScope, previously it was org.red5.server.api.IScope

 

 
3. WebScope cannot be found

– Open your applications red5-web.xml and change the “web.scope” bean class to

<bean id=”web.scope” class=”org.red5.server.scope.WebScope” init-method=”register”>

instead of this

<bean id=”web.scope” class=”org.red5.server.WebScope” init-method=”register”>

 

 
4. Method signature does not match xxxx.

– For this one the fix is to change your expectation to receive an Iterator and instead make use of a Collection. The scope method

for retrieving scope names now returns a Set as shown here:

 

public Set<String> getScopeNames()

 

 
5. Parameter “type” does not match String.

– For scopes, their type is no longer identified by a string but instead uses an enum of ScopeType. The old method for getting basic

scope names was like so:

 

public Iterator<String> getBasicScopeNames(String type)

 

this is the new version:

 

public Set<String> getBasicScopeNames(ScopeType type)