Package org.red5.server.net.rtmp.event

Examples of org.red5.server.net.rtmp.event.FlexStreamSend


         }
         String scopeName = "hibernate";
         if (rcl.getRoom_id() != null) {
           scopeName = rcl.getRoom_id().toString();
         }
         IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         this.scopeApplicationAdapter.roomLeaveByScope(rcl, currentScope);
        
        
         HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
         messageObj.put(0, "kick");
View Full Code Here


          }
          String scopeName = "hibernate";
          if (rcl.getRoom_id() != null) {
            scopeName = rcl.getRoom_id().toString();
          }
          IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         
          HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
          messageObj.put(0, "kick");
         
          this.scopeApplicationAdapter.sendMessageById(messageObj, rcl.getStreamid(), currentScope);
View Full Code Here

    // ------------------------------------------------------------------------

    private void createPlayStream( IPendingServiceCallback callback ) {

        logger.debug( "create play stream" );
        IPendingServiceCallback wrapper = new CreatePlayStreamCallBack( callback );
        invoke( "createStream", null, wrapper );
    }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

              break;
            case Constants.TYPE_NOTIFY:
              msg = new Notify(tag.getBody());
              break;
            case Constants.TYPE_FLEX_STREAM_SEND:
              msg = new FlexStreamSend(tag.getBody());
              break;
            default:
              log.warn("Unexpected type? {}", tag.getDataType());
              msg = new Unknown(tag.getDataType(), tag.getBody());
          }
View Full Code Here

          data.write(notify);
          break;
        case Constants.TYPE_FLEX_STREAM_SEND:
          log.trace("Flex stream send");
          // TODO: okay to send this also to AMF0 clients?
          FlexStreamSend send = new FlexStreamSend(((Notify) msg).getData().asReadOnlyBuffer());
          send.setHeader(header);
          send.setTimestamp(header.getTimer());
          data.write(send);
          break;
        case Constants.TYPE_BYTES_READ:
          log.trace("Bytes read");
          BytesRead bytesRead = new BytesRead(((BytesRead) msg).getBytesRead());
View Full Code Here

   
    // set the limit back to the original minus the one
    // byte that we removed from the buffer
    in.limit(limit-1);
   
    return new FlexStreamSend(in.asReadOnlyBuffer());
  }
View Full Code Here

          notify.setTimestamp(header.getTimer());
          data.write(notify);
          break;
        case Constants.TYPE_FLEX_STREAM_SEND:
          // TODO: okay to send this also to AMF0 clients?
          FlexStreamSend send = new FlexStreamSend(((Notify) msg).getData()
              .asReadOnlyBuffer());
          send.setHeader(header);
          send.setTimestamp(header.getTimer());
          data.write(send);
          break;
        case Constants.TYPE_VIDEO_DATA:
          VideoData videoData = new VideoData(((VideoData) msg)
              .getData().asReadOnlyBuffer());
View Full Code Here

    msg.setCall(call);
    return msg;
  }

  public FlexStreamSend decodeFlexStreamSend(ByteBuffer in) {
    return new FlexStreamSend(in.asReadOnlyBuffer());
  }
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.net.rtmp.event.FlexStreamSend

Copyright © 2018 www.massapicom. 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.