コード例 #1
0
ファイル: AbstractPipe.java プロジェクト: Juliens/red5
 /**
  * Broadcast provider connection event
  *
  * @param provider Provider that has connected
  * @param type Event type
  * @param paramMap Parameters passed with connection
  */
 protected void fireProviderConnectionEvent(
     IProvider provider, int type, Map<String, Object> paramMap) {
   PipeConnectionEvent event = new PipeConnectionEvent(this);
   event.setProvider(provider);
   event.setType(type);
   event.setParamMap(paramMap);
   firePipeConnectionEvent(event);
 }
コード例 #2
0
ファイル: AbstractPipe.java プロジェクト: Juliens/red5
 /**
  * Broadcast consumer connection event
  *
  * @param consumer Consumer that has connected
  * @param type Event type
  * @param paramMap Parameters passed with connection
  */
 protected void fireConsumerConnectionEvent(
     IConsumer consumer, int type, Map<String, Object> paramMap) {
   // Create event object
   PipeConnectionEvent event = new PipeConnectionEvent(this);
   // Fill it up
   event.setConsumer(consumer);
   event.setType(type);
   event.setParamMap(paramMap);
   // Fire it
   firePipeConnectionEvent(event);
 }