Skip to content

Commit

Permalink
Updated for alias support in 1.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain committed Mar 22, 2022
1 parent 300fef2 commit 8f09252
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 80 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.red5</groupId>
<artifactId>red5-parent</artifactId>
<version>1.2.13</version>
<version>1.2.16</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>red5-server-common</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/red5/server/api/Red5.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ public final class Red5 {
/**
* Server version with revision
*/
public static final String VERSION = "Red5 Server 1.2.10";
public static final String VERSION = "Red5 Server 1.2.15";

/**
* Server version for fmsVer requests
*/
public static final String FMS_VERSION = "RED5/1,2,10,0";
public static final String FMS_VERSION = "RED5/1,2,15,0";

/**
* Server capabilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,40 +49,63 @@ public interface IClientBroadcastStream extends IClientStream, IBroadcastStream
Map<String, String> getParameters();

/**
* Adds a stream name alias.
* Adds a stream name subscribe-side alias.
*
* @param alias
* @return true if added to the aliases, false otherwise
*/
boolean addAlias(String alias);

/**
* Returns whether or not an alias for this stream exists.
* Returns whether or not an subscribe-side alias for this stream exists.
*
* @return true if an alias has been added and false otherwise
*/
boolean hasAlias();

/**
* Returns an alias.
* Returns an subscribe-side alias.
*
* @return alias if at least one exists or null when there are none
*/
String getAlias();

/**
* Returns whether or not a given alias exists.
* Returns whether or not a given subscribe-side alias exists.
*
* @param alias
* @return true if found and false otherwise
*/
boolean containsAlias(String alias);

/**
* Returns all the aliases.
* Returns all the subscribe-side aliases.
*
* @return all aliases for this instance or an empty set
*/
Set<String> getAliases();

/**
* Sets the publish-side alias for the streams name. Subsequent calls will replace an existing alias if already set.
*
* @param nameAlias alias to set for the streams name or null to clear it
*/
void setNameAlias(String nameAlias);

/**
* Returns the publish-side alias, if configured.
*
* @return alias for the streams name or null if not set
*/
String getNameAlias();

/**
* Returns whether or not an alias is in-use / registered already; this includes both publish and subscribe aliases
* within a server instance.
*
* @param alias the name to check against publish and subscribe aliases
* @return true if registered and false otherwise
*/
boolean aliasRegistered(String alias);

}
Loading

0 comments on commit 8f09252

Please sign in to comment.