From 6ef1fa4618e08426b874529619a66adbd3d1fcf0 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:07:59 +0100 Subject: unslug ja: move --- .../ja/orphaned/nsidomhtmlmediaelement/index.html | 345 +++++++++++++++++++++ 1 file changed, 345 insertions(+) create mode 100644 files/ja/orphaned/nsidomhtmlmediaelement/index.html (limited to 'files/ja/orphaned/nsidomhtmlmediaelement/index.html') diff --git a/files/ja/orphaned/nsidomhtmlmediaelement/index.html b/files/ja/orphaned/nsidomhtmlmediaelement/index.html new file mode 100644 index 0000000000..34450a8b9b --- /dev/null +++ b/files/ja/orphaned/nsidomhtmlmediaelement/index.html @@ -0,0 +1,345 @@ +--- +title: nsIDOMHTMLMediaElement +slug: NsIDOMHTMLMediaElement +--- +

+ +

nsIDOMHTMLMediaElement インターフェースは HTML 5 における audio および video 要素の実装に用いられています。

+ +
注意: cue ranges 機能の仕様は現在流動的な状況にあり、 HTML 5 標準においては大幅に改訂が加えられるか、置き換えられてしまう可能性があります。そのため、現時点では Firefox ではこの機能に対応していません。
+ +

+
dom/public/idl/html/nsIDOMHTMLMediaElement.idlScriptable
+ + +Please add a summary to this article. + + +
+  +最終更新: Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
+

+ +

Inherits from: nsIDOMHTMLElement

+ +

メソッド概要 (Method Overview)

+ + + + + + + + + + + + + + + + + + + + + + +
void addCueRange(in DOMString className, in float start, in float end, in boolean pauseOnExit, in nsIDOMHTMLVoidCallback enterCallback, in nsIDOMHTMLVoidCallback exitCallback);
DOMString canPlayType(in DOMString type);
void load();
void pause();
void play();
void removeCueRanges(in DOMString className);
+ +

属性 (Attributes)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
属性意味
autoplaybooleantrue if playback should automatically begin as soon as enough media is available to do so without interruption.
bufferedTimeRangesA static, normalized TimeRanges object describing the time ranges of the media that have been buffered.  Read only.  未実装
bufferedBytesByteRangesA static, normalized ByteRanges object describing the byte ranges of the media that have been buffered.  Read only.  未実装
bufferingRatefloatThe average number of bits per second for the current download over the past few seconds.  If there is no download in progress, this value is 0.0.  Read only.  未実装
bufferingThrottledbooleantrue if Firefox is intentionally throttling the bandwidth used by the download (such as when the download is paused), otherwise false. Read only.  未実装
controlsbooleantrue if user interface for controlling the media should be presented.
currentSrcDOMStringThe absolute URL of the chosen media resource (if, for example, the server selects a media file based on the resolution of the user's display), or an empty string if the networkState is EMPTY. Read only.
currentTimefloatThe current playback time, in seconds.  Setting this value will seek the media to the new time.
defaultPlaybackRatefloatThe default playback rate for the media.  The Ogg backend does not support this.  1.0 is "normal speed," values lower than 1.0 make the media play slower than normal, higher values make it play faster.  The value 0.0 is invalid and throws a NOT_SUPPORTED_ERR exception.
durationfloatThe length of the media in seconds, or zero if no media data is available.  If the media data is available but the length is unknown, this value is NaN.  If the media is streamed and has no predefined length, the value is InfRead only.
endedbooleantrue if playback has finished.  Read only.
errornsIDOMHTMLMediaErrorThe media's error status.  Read only.
mutedbooleantrue if the audio is muted, otherwise false.
networkStateunsigned short +

The current state of the fetch of the media. Read only.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
定数意味
EMPTY0There is no data yet.  The readyState will also be HAVE_NOTHING.
LOADING1The media is loading.
LOADED_METADATA2The media's metadata has been loaded.
LOADED_FIRST_FRAME3The media's first frame has been loaded.
LOADED4The media has been fully loaded.
+
pausedbooleantrue if the media playback is currently paused.  Read only.
playbackRatefloatThe current rate at which the media is being played back.  This is used to implement user controls for fast forward, slow motion, and so forth.  The normal playback rate is multiplied by this value to obtain the current rate, so a value of 1.0 indicates normal speed.  Not supported by the Ogg backend.
readyStateunsigned short +

The media's current readiness state.  Read only.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
定数意味
HAVE_NOTHING0No information is available about the media resource.
HAVE_METADATA1Enough of the media resource has been retrieved that the metadata attributes are initialized.  Seeking will no longer raise an exception.
HAVE_SOME_DATA2Data for the current playback position is not available, but there is at least one playback position for which data is available.
HAVE_CURRENT_DATA3Data is available for the current playback position, but not enough to actually play more than one frame.
HAVE_FUTURE_DATA4Data for the current playback position as well as for at least a little bit of time into the future is available (in other words, at least two frames of video, for example).
HAVE_ENOUGH_DATA5Enough data is available—and the download rate is high enough—that the media can be played through to the end without interruption.
+
seekingbooleantrue if the media is in the process of seeking to a new position, otherwise false. Read only.
srcDOMStringThe URL of the media to present.
totalBytesunsigned longThe length, in bytes, of the media resource.  If the length is unknown, or the content is streamed and therefore has no specified length, this value is 0.  Read only.
volumefloatThe current audio volume, from 0.0 (silent) to 1.0 (maximum).
+ +

メソッド (Methods)

+ +

addCueRange()

+ +
Note: This method is not yet implemented, as its definition is in flux in the HTML 5 standard.
+ +

Adds a cue range to the media element.

+ +
void addCueRange(
+  in DOMString className,
+  in float start,
+  in float end,
+  in boolean pauseOnExit,
+  in nsIDOMHTMLVoidCallback enterCallback,
+  in nsIDOMHTMLVoidCallback exitCallback
+);
+
+ +
Parameters
+ +

xxx

+ +

canPlayType()

+ +

Determines whether or not the specified media type can be played back.

+ +
DOMString canPlayType(
+  in DOMString type
+);
+ +
Parameters
+ +
+
type
+
The media type to test for, such as "video/ogg".
+
+ +
Return value
+ + + +

Because media formats are complicated, and it's impossible to judge every possible detail from the type string, there is no such thing as 100% certain that the specified type can be played; the best you can do is "probably".

+ +

load()

+ +

Begins loading the media content from the server.

+ +
 void load();
+ +
Parameters
+ +

None.

+ +

pause()

+ +

Pauses the media playback.

+ +
 void pause();
+
+ +
Parameters
+ +

None.

+ +

play()

+ +

Begins playback of the media.

+ +
 void play();
+
+ +
Parameters
+ +

None.

+ +

removeCueRanges()

+ +
Note: This function is not yet implemented, as its definition in the HTML 5 standard is in flux.
+ +
void removeCueRanges(
+  in DOMString className
+);
+
+ +
Parameters
+ +

xxx

+ +

参考資料

+ + -- cgit v1.2.3-54-g00ecf