Bug 1366975 - MediaElementWebidl.
MozReview-Commit-ID: HNPOLlvlcMP
--- a/dom/html/HTMLMediaElement.h
+++ b/dom/html/HTMLMediaElement.h
@@ -51,16 +51,17 @@ class VideoFrameContainer;
namespace dom {
class MediaKeys;
class TextTrack;
class TimeRanges;
class WakeLock;
class MediaTrack;
class MediaStreamTrack;
class VideoStreamTrack;
+class MediaCacheStatus;
} // namespace dom
} // namespace mozilla
class nsIChannel;
class nsIHttpChannel;
class nsILoadGroup;
class nsIRunnable;
class nsITimer;
--- a/dom/webidl/HTMLMediaElement.webidl
+++ b/dom/webidl/HTMLMediaElement.webidl
@@ -196,16 +196,21 @@ partial interface HTMLMediaElement {
* currentTime to the duration of the media source and dispatches a "seeked"
* event and an "ended" event.
*/
partial interface HTMLMediaElement {
[Throws, Pref="media.seekToNextFrame.enabled"]
Promise<void> seekToNextFrame();
};
+partial interface HTMLMediaElement {
+ [Func="mozilla::dom::MediaCacheStatus::Enabled", NewObject]
+ MediaCacheStatus getMediaCacheStatus();
+};
+
/*
* This is an API for simulating visibility changes to help debug and write
* tests about suspend-video-decoding.
*
* - SetVisible() is for simulating visibility changes.
* - HasSuspendTaint() is for querying that the element's decoder cannot suspend
* video decoding because it has been tainted by an operation, such as
* drawImage().