Add track_list member to AudioTrack, VideoTrack, TextTrack structs

Add member to the track structs pointing at their associated tracklist
and update it when the track is added or removed from a tracklist.
This commit is contained in:
Kunal Mohan 2019-12-22 21:00:10 +05:30
parent 43a5f65940
commit 9b59b9602c
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
8 changed files with 58 additions and 8 deletions

View file

@ -59,6 +59,7 @@ impl HTMLTrackElement {
Default::default(),
Default::default(),
Default::default(),
None,
);
Node::reflect_node(
Box::new(HTMLTrackElement::new_inherited(