Examples of IStreamSecurityService


Examples of org.red5.server.api.service.IStreamSecurityService

      int streamId = conn.getStreamId();
      if (StringUtils.isEmpty(name)) {
        sendNSFailed(streamConn, StatusCodes.NS_FAILED, "The stream name may not be empty.", name, streamId);
        return;
      }
      IStreamSecurityService security = (IStreamSecurityService) ScopeUtils.getScopeService(scope, IStreamSecurityService.class);
      if (security != null) {
        Set<IStreamPlaybackSecurity> handlers = security.getStreamPlaybackSecurity();
        for (IStreamPlaybackSecurity handler : handlers) {
          if (!handler.isPlaybackAllowed(scope, name, start, length, flushPlaylist)) {
            sendNSFailed(streamConn, StatusCodes.NS_FAILED, "You are not allowed to play the stream.", name, streamId);
            return;
          }
View Full Code Here

Examples of org.red5.server.api.service.IStreamSecurityService

      int streamId = conn.getStreamId();
      if (StringUtils.isEmpty(name)) {
        sendNSFailed(streamConn, StatusCodes.NS_FAILED, "The stream name may not be empty.", name, streamId);
        return;
      }
      IStreamSecurityService security = (IStreamSecurityService) ScopeUtils.getScopeService(scope, IStreamSecurityService.class);
      if (security != null) {
        Set<IStreamPublishSecurity> handlers = security.getStreamPublishSecurity();
        for (IStreamPublishSecurity handler : handlers) {
          if (!handler.isPublishAllowed(scope, name, mode)) {
            sendNSFailed(streamConn, StatusCodes.NS_PUBLISH_BADNAME, "You are not allowed to publish the stream.", name, streamId);
            return;
          }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamSecurityService

    int streamId = getCurrentStreamId();
    if (name == null || "".equals(name)) {
      sendNSFailed((RTMPConnection) streamConn, "The stream name may not be empty.", name, streamId);
      return;
    }
    IStreamSecurityService security = (IStreamSecurityService) ScopeUtils.getScopeService(scope, IStreamSecurityService.class);
    if (security != null) {
      Set<IStreamPlaybackSecurity> handlers = security.getStreamPlaybackSecurity();
      for (IStreamPlaybackSecurity handler: handlers) {
        if (!handler.isPlaybackAllowed(scope, name, start, length, flushPlaylist)) {
          sendNSFailed((RTMPConnection) streamConn, "You are not allowed to play the stream.", name, streamId);
          return;
        }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamSecurityService

    if (name == null || "".equals(name)) {
      sendNSFailed((RTMPConnection) streamConn, "The stream name may not be empty.", name, streamId);
      return;
    }

    IStreamSecurityService security = (IStreamSecurityService) ScopeUtils.getScopeService(scope, IStreamSecurityService.class);
    if (security != null) {
      Set<IStreamPublishSecurity> handlers = security.getStreamPublishSecurity();
      for (IStreamPublishSecurity handler: handlers) {
        if (!handler.isPublishAllowed(scope, name, mode)) {
          sendNSFailed((RTMPConnection) streamConn, "You are not allowed to publish the stream.", name, streamId);
          return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.