Red5 1.0 RC2 keserasian ke belakang

Versi red5 ( Red5 revision > 4326 seperti 1.0 RC2 +) membawa perubahan yang membuat red5 yang tidak serasi dengan aplikasi yang lebih lama.
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 thescopepackage to your imports or runOptimize importsin 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 theweb.scopebean class to

<bean id=web.scopeclass=org.red5.server.scope.WebScopeinit-method=register”>

instead of this

<bean id=web.scopeclass=org.red5.server.WebScopeinit-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 “jenis” 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)

 

Kajian saya

Borang kajian..

Ulasan

Memuatkan Ulasan....