Package org.red5.server.so

Examples of org.red5.server.so.SharedObjectMessage


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

    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

            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

        buffer.clear();
        buffer.put( video );
        buffer.flip();

        VideoData videoData = new VideoData( buffer );
        videoData.setTimestamp( (int) ts );

        kt++;

//        if ( kt < 10 ) {
//            logger.debug( "+++ " + videoData );
View Full Code Here

        buffer.clear();
        buffer.put( video );
        buffer.flip();

        VideoData videoData = new VideoData( buffer );
        videoData.setTimestamp( (int) ts );

        kt++;

//        if ( kt < 10 ) {
//            logger.debug( "+++ " + videoData );
View Full Code Here

   * @param persistent
   * @param events
   */
  public void sendSharedObjectMessage(String name, int currentVersion, boolean persistent, ConcurrentLinkedQueue<ISharedObjectEvent> events) {
    // create a new sync message for every client to avoid concurrent access through multiple threads
    SharedObjectMessage syncMessage = state.getEncoding() == Encoding.AMF3 ? new FlexSharedObjectMessage(null, name, currentVersion, persistent) : new SharedObjectMessage(
        null, name, currentVersion, persistent);
    syncMessage.addEvents(events);
    try {
      // get the channel for so updates
      Channel channel = getChannel((byte) 3);
      if (log.isTraceEnabled())
        log.trace("Send to channel: {}", channel);
View Full Code Here

    // Read persistence informations
    boolean persistent = in.getInt() == 2;
    // Skip unknown bytes
    in.skip(4);
    // create our shared object message
    final SharedObjectMessage so = new FlexSharedObjectMessage(null, name, version, persistent);
    doDecodeSharedObject(so, in, input);
    return so;
  }
View Full Code Here

    // Read persistence informations
    boolean persistent = in.getInt() == 2;
    // Skip unknown bytes
    in.skip(4);
    // create our shared object message
    final SharedObjectMessage so = new SharedObjectMessage(null, name, version, persistent);
    doDecodeSharedObject(so, in, input);
    return so;
  }
View Full Code Here

   * @param name
   * @param persistent
   */
  private void sendSOCreationFailed(RTMPConnection conn, String name,
      boolean persistent) {
    SharedObjectMessage msg = new SharedObjectMessage(name, 0, persistent);
    msg.addEvent(new SharedObjectEvent(
        ISharedObjectEvent.Type.CLIENT_STATUS, "error",
        SO_CREATION_FAILED));
    conn.getChannel((byte) 3).write(msg);
  }
View Full Code Here

        return;
      }
    }
    so = sharedObjectService.getSharedObject(scope, name);
    if (so.isPersistentObject() != persistent) {
      SharedObjectMessage msg = new SharedObjectMessage(name, 0,
          persistent);
      msg.addEvent(new SharedObjectEvent(
          ISharedObjectEvent.Type.CLIENT_STATUS, "error",
          SO_PERSISTENCE_MISMATCH));
      conn.getChannel((byte) 3).write(msg);
    }
    so.dispatchEvent(object);
View Full Code Here

TOP

Related Classes of org.red5.server.so.SharedObjectMessage

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.