syncstartthread.java

来自「FMJ(freedom media for java)是java视频开发的新选择」· Java 代码 · 共 40 行

JAVA
40
字号
package net.sf.fmj.ejmf.toolkit.media;import javax.media.Time;/** * 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.     */    public void run() {        controller.synchronousSyncStart(timeBaseStartTime);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?