MediaControllerInterface.h [plain text]
#ifndef MediaControllerInterface_h
#define MediaControllerInterface_h
#if ENABLE(VIDEO)
#include <wtf/PassRefPtr.h>
namespace WebCore {
class TimeRanges;
typedef int ExceptionCode;
class MediaControllerInterface {
public:
virtual ~MediaControllerInterface() { };
virtual PassRefPtr<TimeRanges> buffered() const = 0;
virtual PassRefPtr<TimeRanges> seekable() const = 0;
virtual PassRefPtr<TimeRanges> played() = 0;
virtual double duration() const = 0;
virtual double currentTime() const = 0;
virtual void setCurrentTime(double, ExceptionCode&) = 0;
virtual bool paused() const = 0;
virtual void play() = 0;
virtual void pause() = 0;
virtual double defaultPlaybackRate() const = 0;
virtual void setDefaultPlaybackRate(double) = 0;
virtual double playbackRate() const = 0;
virtual void setPlaybackRate(double) = 0;
virtual double volume() const = 0;
virtual void setVolume(double, ExceptionCode&) = 0;
virtual bool muted() const = 0;
virtual void setMuted(bool) = 0;
enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTURE_DATA, HAVE_ENOUGH_DATA };
virtual ReadyState readyState() const = 0;
virtual bool supportsFullscreen() const = 0;
virtual bool isFullscreen() const = 0;
virtual void enterFullscreen() = 0;
virtual bool hasAudio() const = 0;
virtual bool hasVideo() const = 0;
virtual bool hasClosedCaptions() const = 0;
virtual void setClosedCaptionsVisible(bool) = 0;
virtual bool closedCaptionsVisible() const = 0;
virtual bool supportsScanning() const = 0;
virtual void beginScrubbing() = 0;
virtual void endScrubbing() = 0;
virtual bool canPlay() const = 0;
virtual bool isLiveStream() const = 0;
virtual bool hasCurrentSrc() const = 0;
virtual void returnToRealtime() = 0;
};
}
#endif
#endif