/**
 *
 */
package com.beem.project.beem.jingle;

import org.jivesoftware.smackx.jingle.JingleSession;
import org.jivesoftware.smackx.jingle.SmackLogger;
import org.jivesoftware.smackx.jingle.media.JingleMediaSession;
import org.jivesoftware.smackx.jingle.media.PayloadType;
import org.jivesoftware.smackx.jingle.nat.TransportCandidate;

/**
 * @author darisk
 *
 */
public class SenderMediaSession extends JingleMediaSession {

    private static final SmackLogger LOGGER = SmackLogger.getLogger(SenderMediaSession.class);
    private boolean active = false;
    private boolean started = false;
    private FileSender fileSender;

    /**
     * @param payloadType
     * @param remote
     * @param local
     * @param mediaLocator
     * @param jingleSession
     */
    public SenderMediaSession(PayloadType payloadType, TransportCandidate remote,
	    TransportCandidate local, String mediaLocator,
	    JingleSession jingleSession) {
	super(payloadType, remote, local, mediaLocator, jingleSession);
	initialize();
	LOGGER.info("Demarrage d'une session avec local: "+ local +" #remote: "+remote );
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#initialize()
     */
    @Override
    public void initialize() {
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#setTrasmit(boolean)
     */
    @Override
    public void setTrasmit(boolean active) {
	// TODO Auto-generated method stub
	this.active = active;
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#startReceive()
     */
    @Override
    public void startReceive() {
	// TODO Auto-generated method stub

    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#startTrasmit()
     */
    @Override
    public void startTrasmit() {
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#stopReceive()
     */
    @Override
    public void stopReceive() {
	// TODO Auto-generated method stub

    }

    /* (non-Javadoc)
     * @see org.jivesoftware.smackx.jingle.media.JingleMediaSession#stopTrasmit()
     */
    @Override
    public void stopTrasmit() {
	// TODO Auto-generated method stub
	started = false;
    }



}
