All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.fmj.ejmf.toolkit.media.SyncStartThread Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package net.sf.fmj.ejmf.toolkit.media;

import javax.media.*;

/**
 * Provides a thread to asynchronously SyncStart the given AbstractController.
 *
 * From the book: Essential JMF, Gordon, Talley (ISBN 0130801046). Used with
 * permission.
 *
 * @author Steve Talley & Rob Gordon
 */
public class SyncStartThread extends Thread
{
    private AbstractController controller;
    private Time timeBaseStartTime;

    /**
     * Construct a SyncStartThread for the given AbstractController. The
     * AbstractController will not be syncStarted until this thread is started.
     */
    public SyncStartThread(AbstractController controller, Time timeBaseStartTime)
    {
        super();
        this.controller = controller;
        this.timeBaseStartTime = timeBaseStartTime;
    }

    /**
     * syncStarts the AbstractController specified in the constructor. This
     * method should not be called directly. Use start() to start this thread.
     */
    @Override
    public void run()
    {
        controller.synchronousSyncStart(timeBaseStartTime);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy