diff options
Diffstat (limited to 'files/ja/web/api/videotracklist/onremovetrack/index.html')
| -rw-r--r-- | files/ja/web/api/videotracklist/onremovetrack/index.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/files/ja/web/api/videotracklist/onremovetrack/index.html b/files/ja/web/api/videotracklist/onremovetrack/index.html deleted file mode 100644 index 49f520f967..0000000000 --- a/files/ja/web/api/videotracklist/onremovetrack/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: VideoTrackList.onremovetrack -slug: Web/API/VideoTrackList/onremovetrack -tags: - - API - - Event Handler - - HTML DOM - - Media - - Property - - Reference - - Removing Tracks - - Removing Video Tracks - - Video - - VideoTrackList - - onremovetrack - - remove - - removeTrack - - track -translation_of: Web/API/VideoTrackList/onremovetrack ---- -<div>{{APIRef("HTML DOM")}}</div> - -<p><span class="seoSummary"><strong>{{domxref("VideoTrackList")}}</strong> の <strong><code>onremovetrack</code></strong> イベントハンドラは、{{event("removetrack")}} イベントが発生したときに呼び出され、動画トラックがメディア要素から、つまり <code>VideoTrackList</code> からも取り除かれたことを示します。</span></p> - -<p>イベントは {{domxref("TrackEvent")}} オブジェクトの形式でイベントハンドラに渡されます。 その {{domxref("TrackEvent.track", "track")}} プロパティは、メディア要素の <code>VideoTrackList</code> から取り除かれたトラックを識別します。</p> - -<div class="note"> -<p><strong>注</strong>: {{domxref("EventTarget.addEventListener", "addEventListener()")}} を使用して、<code>removetrack</code> イベント用のハンドラを追加することもできます。</p> -</div> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox"><em>VideoTrackList</em>.onremovetrack = <em>eventHandler</em>;</pre> - -<h3 id="Value" name="Value">値</h3> - -<p><code>onremovetrack</code> は、{{domxref("TrackEvent.track", "track")}} プロパティでどの動画トラックがメディア要素から取り除かれたかを示す {{domxref("TrackEvent")}} オブジェクトを入力として受け取る関数を設定します。</p> - -<h2 id="Example" name="Example">例</h2> - -<p>この単純な例では、トラックがメディア要素から取り除かれるたびに、メディア要素内の現在の動画トラック数を取得するだけです。</p> - -<pre class="brush: js">document.querySelector("my-video").videoTracks.onremovetrack = function(event) { - myTrackCount = document.querySelector("my-video").videoTracks.length; -}; -</pre> - -<p>メディア要素に残っている現在の動画トラック数は、<code>VideoTrackList</code> の {{domxref("VideoTrackList.length", "length")}} プロパティから取得します。</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', '#handler-tracklist-onremovetrack', 'VideoTrackList: onremovetrack')}}</td> - <td>{{Spec2('HTML WHATWG')}}</td> - <td> </td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> - - - -<p>{{Compat("api.VideoTrackList.onremovetrack")}}</p> |
