Closed
Bug 1206304
Opened 9 years ago
Closed 8 years ago
Created text tracks don't appear in the textTracks list
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
DUPLICATE
of bug 1242599
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: yury, Assigned: bechen)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
The created TextTrack (via document.createElement) doesn't appear in the video element's textTracks property, until the track's track property accessed.
var track = document.createElement('track');
track.kind = "subtitles"; track.label = "English"; track.srclang = "en";
video.appendChild(track);
// track.track; // when un-commented, the line below prints 1
console.log(video.textTracks.length); // prints 0
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Comment 1•9 years ago
|
||
In bug 1214027 I've found that textTracks is updated asynchronously, so if I put the console.log() inside of a setTimeout, then textTracks is defined.
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → bechen
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•