From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/videotrack/id/index.md | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 files/fr/web/api/videotrack/id/index.md (limited to 'files/fr/web/api/videotrack/id/index.md') diff --git a/files/fr/web/api/videotrack/id/index.md b/files/fr/web/api/videotrack/id/index.md new file mode 100644 index 0000000000..6cd67b7732 --- /dev/null +++ b/files/fr/web/api/videotrack/id/index.md @@ -0,0 +1,43 @@ +--- +title: VideoTrack.id +slug: Web/API/VideoTrack/id +translation_of: Web/API/VideoTrack/id +--- +

{{APIRef("HTML DOM")}}

+ +

La propriété id contient une chaîne qui identifie de manière unique une piste représentée par {{domxref("VideoTrack")}}. Cet ID peut être utilisé avec la méthode {{domxref("VideoTrackList.getTrackById()")}} pour localiser une piste spécifique dans le media associé à l'élément media.

+ +

Cet ID peut aussi être utilisé comme un fragement d'URL pour charger une piste (si le media supporte les fragments de media).

+ +

Syntaxe

+ +
var trackID = VideoTrack.id;
+ +

Valeur

+ +

Une {{domxref("DOMString")}} qui identifie la piste, utilisable par la suite pour l'appel de {{domxref("VideoTrackList.getTrackById", "getTrackById()")}} sur une {{domxref("VideoTrackList")}} tel que spécifié par la propriété {{domxref("HTMLMediaElement.videoTracks", "videoTracks")}} d'un élément media.

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', '#dom-videotrack-id', 'VideoTrack: id')}}{{Spec2('HTML WHATWG')}}
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.VideoTrack.id")}}

-- cgit v1.2.3-54-g00ecf