package com.sibilantsolutions.grison.demo;

import java.net.InetSocketAddress;

import javax.swing.JLabel;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sibilantsolutions.grison.driver.foscam.net.FoscamSession;
import com.sibilantsolutions.grison.evt.AudioHandlerI;
import com.sibilantsolutions.grison.ui.Ui;

public class Demo
{
    final static private Logger log = LoggerFactory.getLogger( Demo.class );

    static private AudioHandlerI audioHandler = new DemoAudioHandler();
    static private JLabel label = new JLabel();
    static private DemoImageHandler imageHandler = new DemoImageHandler();
    static
    {
        imageHandler.setLabel( label );
    }

    static public void demo( final String hostname, final int port, String username, String password )
    {
        Ui.buildUi( label );

        FoscamSession session = FoscamSession.connect( new InetSocketAddress( hostname, port ),
                username, password, audioHandler, imageHandler );

        session.audioStart();
//        session.talkStart();
        session.videoStart();

    }

}

@@ -105,66 +105,8 @@
 l;%0A%0A
-import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A
 impo
@@ -289,16 +289,18 @@
  Demo%0A%7B%0A
+//
     fina

Remove unused logger.