aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/videotracklist/gettrackbyid/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/videotracklist/gettrackbyid/index.html')
-rw-r--r--files/ja/web/api/videotracklist/gettrackbyid/index.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/files/ja/web/api/videotracklist/gettrackbyid/index.html b/files/ja/web/api/videotracklist/gettrackbyid/index.html
new file mode 100644
index 0000000000..9b9addf540
--- /dev/null
+++ b/files/ja/web/api/videotracklist/gettrackbyid/index.html
@@ -0,0 +1,64 @@
+---
+title: Video​Track​List​.get​Track​ById
+slug: Web/API/VideoTrackList/getTrackById
+tags:
+ - API
+ - HTML DOM
+ - Media
+ - Method
+ - Reference
+ - Track ID
+ - Track List
+ - Tracks
+ - Video
+ - VideoTrackList
+ - getTrackById
+ - id
+ - track
+translation_of: Web/API/VideoTrackList/getTrackById
+---
+<div>{{APIRef("HTML DOM")}}</div>
+
+<p><span class="seoSummary"><strong>{{domxref("VideoTrackList")}}</strong> の <strong><code>getTrackById()</code></strong> メソッドは、指定された文字列と {{domxref("VideoTrack.id", "id")}} が一致するトラックリストから最初の {{domxref("VideoTrack")}} オブジェクトを返します。</span> ID 文字列がわかっていれば、これで特定のトラックを見つけることができます。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <em>theTrack</em> = <em>VideoTrackList</em>.getTrackById(<em>id</em>);</pre>
+
+<h3 id="Paramters" name="Paramters">パラメーター</h3>
+
+<dl>
+ <dt><code>id</code></dt>
+ <dd>トラックリスト内で検索するトラックの ID を示す {{domxref("DOMString")}}。</dd>
+</dl>
+
+<h3 id="Return_value" name="Return_value">戻り値</h3>
+
+<p>指定された文字列に一致する <code>id</code> を持つ <code>VideoTrackList</code> 内で見つかった最初のトラックを示す {{domxref("VideoTrack")}} オブジェクト。 一致が見つからない場合、このメソッドは <code>null</code> を返します。</p>
+
+<p>トラックは自然な順序で検索されます。 つまり、メディアリソース自体によって定義された順序で、またはリソースが順序を定義していない場合は、メディアリソースによってトラックが宣言される相対的な順序です。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', '#dom-videotracklist-gettrackbyid', 'VideoTrackList.getTrackById()')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+
+
+<p>{{Compat("api.VideoTrackList.getTrackById")}}</p>