public class

SmilPlayer

extends Object
implements Runnable
java.lang.Object
   ↳ com.android.mms.dom.smil.SmilPlayer

Class Overview

The SmilPlayer is responsible for playing, stopping, pausing and resuming a SMIL tree.

  • It creates a whole timeline before playing.
  • The player runs in a different thread which intends not to block the main thread.
  • Summary

    Constants
    String MEDIA_TIME_UPDATED_EVENT
    Public Methods
    synchronized int getCurrentPosition()
    synchronized int getDuration()
    static SmilPlayer getPlayer()
    synchronized void init(ElementTime root)
    synchronized boolean isPausedState()
    synchronized boolean isPlayedState()
    synchronized boolean isPlayingState()
    synchronized boolean isStoppedState()
    synchronized void next()
    synchronized void pause()
    synchronized void play()
    synchronized void prev()
    synchronized void reload()
    void run()
    synchronized void start()
    synchronized void stop()
    synchronized void stopWhenReload()
    [Expand]
    Inherited Methods
    From class java.lang.Object
    From interface java.lang.Runnable

    Constants

    public static final String MEDIA_TIME_UPDATED_EVENT

    Constant Value: "mediaTimeUpdated"

    Public Methods

    public synchronized int getCurrentPosition ()

    public synchronized int getDuration ()

    public static SmilPlayer getPlayer ()

    public synchronized void init (ElementTime root)

    public synchronized boolean isPausedState ()

    public synchronized boolean isPlayedState ()

    public synchronized boolean isPlayingState ()

    public synchronized boolean isStoppedState ()

    public synchronized void next ()

    public synchronized void pause ()

    public synchronized void play ()

    public synchronized void prev ()

    public synchronized void reload ()

    public void run ()

    public synchronized void start ()

    public synchronized void stop ()

    public synchronized void stopWhenReload ()