| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 virtual double playbackRate() const = 0; | 56 virtual double playbackRate() const = 0; |
| 57 virtual void setPlaybackRate(double) = 0; | 57 virtual void setPlaybackRate(double) = 0; |
| 58 | 58 |
| 59 virtual double volume() const = 0; | 59 virtual double volume() const = 0; |
| 60 virtual void setVolume(double, ExceptionState&) = 0; | 60 virtual void setVolume(double, ExceptionState&) = 0; |
| 61 | 61 |
| 62 virtual bool muted() const = 0; | 62 virtual bool muted() const = 0; |
| 63 virtual void setMuted(bool) = 0; | 63 virtual void setMuted(bool) = 0; |
| 64 | 64 |
| 65 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; | |
| 66 virtual ReadyState readyState() const = 0; | |
| 67 | |
| 68 // MediaControlElements: | 65 // MediaControlElements: |
| 69 virtual bool isFullscreen() const = 0; | 66 virtual bool isFullscreen() const = 0; |
| 70 virtual void enterFullscreen() = 0; | 67 virtual void enterFullscreen() = 0; |
| 71 | 68 |
| 72 virtual bool hasAudio() const = 0; | 69 virtual bool hasAudio() const = 0; |
| 73 virtual bool hasVideo() const = 0; | 70 virtual bool hasVideo() const = 0; |
| 74 virtual bool hasClosedCaptions() const = 0; | 71 virtual bool hasClosedCaptions() const = 0; |
| 75 virtual void setClosedCaptionsVisible(bool) = 0; | 72 virtual void setClosedCaptionsVisible(bool) = 0; |
| 76 virtual bool closedCaptionsVisible() const = 0; | 73 virtual bool closedCaptionsVisible() const = 0; |
| 77 | 74 |
| 78 virtual void beginScrubbing() = 0; | 75 virtual void beginScrubbing() = 0; |
| 79 virtual void endScrubbing() = 0; | 76 virtual void endScrubbing() = 0; |
| 80 | 77 |
| 81 virtual bool canPlay() const = 0; | 78 virtual bool canPlay() const = 0; |
| 82 | 79 |
| 83 virtual bool hasCurrentSrc() const = 0; | 80 virtual bool hasCurrentSrc() const = 0; |
| 84 }; | 81 }; |
| 85 | 82 |
| 86 } | 83 } |
| 87 | 84 |
| 88 #endif | 85 #endif |
| OLD | NEW |