Package org.red5.server.api

Examples of org.red5.server.api.IBasicScope


    public void onStreamEvent( Notify notify ) {

        //logger.debug( "onStreamEvent " + notify );

        ObjectMap map = (ObjectMap) notify.getCall().getArguments()[ 0 ];
        String code = (String) map.get( "code" );

        if ( StatusCodes.NS_PUBLISH_START.equals( code ) ) {
            //logger.debug( "onStreamEvent Publish start" );
            startPublish = true;
        }
View Full Code Here


    ScreenShare.instance.vScreenIconDown.addMouseListener(heightMouseListener);
    ScreenShare.instance.vScreenIconDown.addMouseMotionListener(heightMouseListener);
    ScreenShare.instance.t.add(ScreenShare.instance.vScreenIconDown);


    ScreenShare.instance.virtualScreen = new BlankArea(new Color(255,255,255,100));
    ScreenShare.instance.virtualScreen.setOpaque(true);
    ScreenShare.instance.virtualScreen.setHorizontalAlignment(SwingConstants.LEFT);
    ScreenShare.instance.virtualScreen.setVerticalAlignment(SwingConstants.TOP);
    ScreenShare.instance.virtualScreen.setText(VirtualScreenBean.screenWidthMax+":"+VirtualScreenBean.screenHeightMax);
    ScreenShare.instance.virtualScreen.setBounds(30, 170, VirtualScreenBean.vScreenWidth, VirtualScreenBean.vScreenHeight);
View Full Code Here

    ScreenShareRTMPT.instance.vScreenIconDown.addMouseListener(heightMouseListener);
    ScreenShareRTMPT.instance.vScreenIconDown.addMouseMotionListener(heightMouseListener);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vScreenIconDown);


    ScreenShareRTMPT.instance.virtualScreen = new BlankArea(new Color(255,255,255,100));
    ScreenShareRTMPT.instance.virtualScreen.setOpaque(true);
    ScreenShareRTMPT.instance.virtualScreen.setHorizontalAlignment(SwingConstants.LEFT);
    ScreenShareRTMPT.instance.virtualScreen.setVerticalAlignment(SwingConstants.TOP);
    ScreenShareRTMPT.instance.virtualScreen.setText(VirtualScreenBean.screenWidthMax+":"+VirtualScreenBean.screenHeightMax);
    ScreenShareRTMPT.instance.virtualScreen.setBounds(30, 170, VirtualScreenBean.vScreenWidth, VirtualScreenBean.vScreenHeight);
View Full Code Here

                        stopButton.setBounds(290, 34, 200, 32);
                        stopButton.setEnabled(false);
                        t.add(stopButton);

                        //add the small screen thumb to the JFrame
                        new VirtualScreen();
                       
                        //*****
                        //Text Recording
                        textAreaHeaderRecording = new JLabel();
                       
View Full Code Here

      stopButton.setBounds(290, 34, 200, 32);
      stopButton.setEnabled(false);
      t.add(stopButton);

      //add the small screen thumb to the JFrame
      new VirtualScreen();
     
      //*****
      //Text Recording
      textAreaHeaderRecording = new JLabel();
     
View Full Code Here

     * @param scope          Scope object
     * @param name           Child scope name
     * @return               Broadcast scope
     */
    public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(IBroadcastScope.TYPE,
        name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
View Full Code Here

  }

  /** {@inheritDoc} */
  public IMessageInput getLiveProviderInput(IScope scope, String name,
      boolean needCreate) {
    IBasicScope basicScope;
    basicScope = scope.getBasicScope(IBroadcastScope.TYPE, name);
    if (basicScope == null) {
      if (needCreate) {
        synchronized (scope) {
          // Re-check if another thread already created the scope
View Full Code Here

  /** {@inheritDoc} */
  public boolean registerBroadcastStream(IScope scope, String name,
      IBroadcastStream bs) {
    boolean status = false;
    synchronized (scope) {
      IBasicScope basicScope = scope.getBasicScope(IBroadcastScope.TYPE,
          name);
      if (basicScope == null) {
        basicScope = new BroadcastScope(scope, name);
        scope.addChildScope(basicScope);
      }
View Full Code Here

  /** {@inheritDoc} */
  public boolean unregisterBroadcastStream(IScope scope, String name) {
    boolean status = false;
    synchronized (scope) {
      IBasicScope basicScope = scope.getBasicScope(IBroadcastScope.TYPE,
          name);
      if (basicScope instanceof IBroadcastScope) {
        scope.removeChildScope(basicScope);
        status = true;
      }
View Full Code Here

      if (hasSharedObject(scope, name)) {
        // The shared object already exists.
        return true;
      }
 
      final IBasicScope soScope = new SharedObjectScope(scope, name,
          persistent, getStore(scope, persistent));
      return scope.addChildScope(soScope);
    }
  }
View Full Code Here

TOP

Related Classes of org.red5.server.api.IBasicScope

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.