Struct xpcom::interfaces::nsIDOMHTMLMediaElement
[−]
[src]
#[repr(C)]pub struct nsIDOMHTMLMediaElement { /* fields omitted */ }
interface nsIDOMHTMLMediaElement : nsISupports
Methods
impl nsIDOMHTMLMediaElement
[src]
pub fn coerce<T: nsIDOMHTMLMediaElementCoerce>(&self) -> &T
[src]
Cast this nsIDOMHTMLMediaElement
to one of its base interfaces.
impl nsIDOMHTMLMediaElement
[src]
pub const NETWORK_EMPTY: i64
NETWORK_EMPTY: i64 = 0
pub const NETWORK_IDLE: i64
NETWORK_IDLE: i64 = 1
pub const NETWORK_LOADING: i64
NETWORK_LOADING: i64 = 2
pub const NETWORK_NO_SOURCE: i64
NETWORK_NO_SOURCE: i64 = 3
pub const HAVE_NOTHING: i64
HAVE_NOTHING: i64 = 0
pub const HAVE_METADATA: i64
HAVE_METADATA: i64 = 1
pub const HAVE_CURRENT_DATA: i64
HAVE_CURRENT_DATA: i64 = 2
pub const HAVE_FUTURE_DATA: i64
HAVE_FUTURE_DATA: i64 = 3
pub const HAVE_ENOUGH_DATA: i64
HAVE_ENOUGH_DATA: i64 = 4
pub unsafe fn GetSrc(&self, aSrc: &mut nsAString) -> nsresult
[src]
attribute DOMString src;
pub unsafe fn SetSrc(&self, aSrc: &nsAString) -> nsresult
[src]
attribute DOMString src;
pub unsafe fn GetCurrentSrc(&self, aCurrentSrc: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString currentSrc;
pub unsafe fn GetNetworkState(&self, aNetworkState: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short networkState;
pub unsafe fn GetPreload(&self, aPreload: &mut nsAString) -> nsresult
[src]
attribute DOMString preload;
pub unsafe fn SetPreload(&self, aPreload: &nsAString) -> nsresult
[src]
attribute DOMString preload;
pub unsafe fn GetBuffered(
&self,
aBuffered: *mut *const nsIDOMTimeRanges
) -> nsresult
[src]
&self,
aBuffered: *mut *const nsIDOMTimeRanges
) -> nsresult
readonly attribute nsIDOMTimeRanges buffered;
pub unsafe fn Load(&self) -> nsresult
[src]
void load ();
pub unsafe fn CanPlayType(
&self,
type_: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
type_: &nsAString,
_retval: &mut nsAString
) -> nsresult
DOMString canPlayType (in DOMString type);
pub unsafe fn GetReadyState(&self, aReadyState: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short readyState;
pub unsafe fn GetSeeking(&self, aSeeking: *mut bool) -> nsresult
[src]
readonly attribute boolean seeking;
pub unsafe fn GetCurrentTime(&self, aCurrentTime: *mut c_double) -> nsresult
[src]
attribute double currentTime;
pub unsafe fn SetCurrentTime(&self, aCurrentTime: c_double) -> nsresult
[src]
attribute double currentTime;
pub unsafe fn GetDuration(&self, aDuration: *mut c_double) -> nsresult
[src]
readonly attribute double duration;
pub unsafe fn GetPaused(&self, aPaused: *mut bool) -> nsresult
[src]
readonly attribute boolean paused;
pub unsafe fn GetDefaultPlaybackRate(
&self,
aDefaultPlaybackRate: *mut c_double
) -> nsresult
[src]
&self,
aDefaultPlaybackRate: *mut c_double
) -> nsresult
attribute double defaultPlaybackRate;
pub unsafe fn SetDefaultPlaybackRate(
&self,
aDefaultPlaybackRate: c_double
) -> nsresult
[src]
&self,
aDefaultPlaybackRate: c_double
) -> nsresult
attribute double defaultPlaybackRate;
pub unsafe fn GetPlaybackRate(&self, aPlaybackRate: *mut c_double) -> nsresult
[src]
attribute double playbackRate;
pub unsafe fn SetPlaybackRate(&self, aPlaybackRate: c_double) -> nsresult
[src]
attribute double playbackRate;
pub unsafe fn GetMozPreservesPitch(
&self,
aMozPreservesPitch: *mut bool
) -> nsresult
[src]
&self,
aMozPreservesPitch: *mut bool
) -> nsresult
attribute boolean mozPreservesPitch;
pub unsafe fn SetMozPreservesPitch(&self, aMozPreservesPitch: bool) -> nsresult
[src]
attribute boolean mozPreservesPitch;
pub unsafe fn GetPlayed(
&self,
aPlayed: *mut *const nsIDOMTimeRanges
) -> nsresult
[src]
&self,
aPlayed: *mut *const nsIDOMTimeRanges
) -> nsresult
readonly attribute nsIDOMTimeRanges played;
pub unsafe fn GetSeekable(
&self,
aSeekable: *mut *const nsIDOMTimeRanges
) -> nsresult
[src]
&self,
aSeekable: *mut *const nsIDOMTimeRanges
) -> nsresult
readonly attribute nsIDOMTimeRanges seekable;
pub unsafe fn GetEnded(&self, aEnded: *mut bool) -> nsresult
[src]
readonly attribute boolean ended;
pub unsafe fn GetAutoplay(&self, aAutoplay: *mut bool) -> nsresult
[src]
attribute boolean autoplay;
pub unsafe fn SetAutoplay(&self, aAutoplay: bool) -> nsresult
[src]
attribute boolean autoplay;
pub unsafe fn GetLoop(&self, aLoop: *mut bool) -> nsresult
[src]
attribute boolean loop;
pub unsafe fn SetLoop(&self, aLoop: bool) -> nsresult
[src]
attribute boolean loop;
pub unsafe fn Pause(&self) -> nsresult
[src]
void pause ();
pub unsafe fn GetControls(&self, aControls: *mut bool) -> nsresult
[src]
attribute boolean controls;
pub unsafe fn SetControls(&self, aControls: bool) -> nsresult
[src]
attribute boolean controls;
pub unsafe fn GetVolume(&self, aVolume: *mut c_double) -> nsresult
[src]
attribute double volume;
pub unsafe fn SetVolume(&self, aVolume: c_double) -> nsresult
[src]
attribute double volume;
pub unsafe fn GetMuted(&self, aMuted: *mut bool) -> nsresult
[src]
attribute boolean muted;
pub unsafe fn SetMuted(&self, aMuted: bool) -> nsresult
[src]
attribute boolean muted;
pub unsafe fn GetDefaultMuted(&self, aDefaultMuted: *mut bool) -> nsresult
[src]
attribute boolean defaultMuted;
pub unsafe fn SetDefaultMuted(&self, aDefaultMuted: bool) -> nsresult
[src]
attribute boolean defaultMuted;
pub unsafe fn GetMozAudioCaptured(
&self,
aMozAudioCaptured: *mut bool
) -> nsresult
[src]
&self,
aMozAudioCaptured: *mut bool
) -> nsresult
readonly attribute boolean mozAudioCaptured;
pub unsafe fn GetMozFragmentEnd(
&self,
aMozFragmentEnd: *mut c_double
) -> nsresult
[src]
&self,
aMozFragmentEnd: *mut c_double
) -> nsresult
readonly attribute double mozFragmentEnd;
pub unsafe fn IsVideo(&self) -> bool
[src]
[notxpcom] boolean isVideo ();
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDOMHTMLMediaElement
[src]
const IID: nsIID
IID: nsIID = nsID(3225540460, 5582, 18349, [182, 29, 232, 117, 90, 109, 182, 56])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDOMHTMLMediaElement
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMHTMLMediaElement
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.