Skip to content

Commit

Permalink
Adapt AudioTrackList API to new events structure
Browse files Browse the repository at this point in the history
This PR adapts the AudioTrackList API to conform to the new events structure.  Part of work for mdn#14578.
  • Loading branch information
queengooborg committed Feb 18, 2022
1 parent 6e0e500 commit 956bbdb
Showing 1 changed file with 12 additions and 315 deletions.
327 changes: 12 additions & 315 deletions api/AudioTrackList.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@
"__compat": {
"description": "<code>addtrack</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/addtrack_event",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#event-media-addtrack",
"spec_url": [
"https://html.spec.whatwg.org/multipage/media.html#event-media-addtrack",
"https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onaddtrack"
],
"support": {
"chrome": {
"version_added": "37",
Expand Down Expand Up @@ -212,7 +215,10 @@
"__compat": {
"description": "<code>change</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/change_event",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#event-media-change",
"spec_url": [
"https://html.spec.whatwg.org/multipage/media.html#event-media-change",
"https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onchange"
],
"support": {
"chrome": {
"version_added": "37",
Expand Down Expand Up @@ -521,323 +527,14 @@
}
}
},
"onaddtrack": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/onaddtrack",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onaddtrack",
"support": {
"chrome": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"chrome_android": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"edge": [
{
"version_added": "79",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
{
"version_added": "12",
"version_removed": "79"
}
],
"firefox": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"ie": {
"version_added": "10"
},
"opera": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"opera_android": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"safari": {
"version_added": "7"
},
"safari_ios": {
"version_added": "7"
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onchange": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/onchange",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onchange",
"support": {
"chrome": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"chrome_android": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"edge": [
{
"version_added": "79",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
{
"version_added": "12",
"version_removed": "79"
}
],
"firefox": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"ie": {
"version_added": "10"
},
"opera": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"opera_android": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"safari": {
"version_added": "7"
},
"safari_ios": {
"version_added": "7"
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onremovetrack": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/onremovetrack",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onremovetrack",
"support": {
"chrome": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"chrome_android": {
"version_added": "37",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"edge": [
{
"version_added": "79",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
{
"version_added": "12",
"version_removed": "79"
}
],
"firefox": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": {
"version_added": "33",
"flags": [
{
"type": "preference",
"name": "media.track.enabled",
"value_to_set": "true"
}
]
},
"ie": {
"version_added": "10"
},
"opera": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"opera_android": {
"version_added": "24",
"flags": [
{
"type": "preference",
"name": "enable-experimental-web-platform-features",
"value_to_set": "enabled"
}
]
},
"safari": {
"version_added": "7"
},
"safari_ios": {
"version_added": "7"
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"removetrack_event": {
"__compat": {
"description": "<code>removetrack</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioTrackList/removetrack_event",
"spec_url": "https://html.spec.whatwg.org/multipage/media.html#event-media-removetrack",
"spec_url": [
"https://html.spec.whatwg.org/multipage/media.html#event-media-removetrack",
"https://html.spec.whatwg.org/multipage/media.html#handler-tracklist-onremovetrack"
],
"support": {
"chrome": {
"version_added": "37",
Expand Down

0 comments on commit 956bbdb

Please sign in to comment.