fix(android)!: rework video tracks management (#3778)
* fix: fix crash when invalid index type is provided and minor clean up * fix: review video track management. Fix index support and rework string vs int in tracks management * fix: ABR track selection check * fix: split track selector in sample and lint code * fix: ensure we don't report null fields * chore: improve tracks displayed * chore: start moving to selection by index only
This commit is contained in:
@@ -237,9 +237,9 @@ Example:
|
||||
{ title: '#3 English Director Commentary', language: 'en', index: 2, type: 'text/vtt' }
|
||||
],
|
||||
videoTracks: [
|
||||
{ bitrate: 3987904, codecs: "avc1.640028", height: 720, trackId: "f1-v1-x3", width: 1280 },
|
||||
{ bitrate: 7981888, codecs: "avc1.640028", height: 1080, trackId: "f2-v1-x3", width: 1920 },
|
||||
{ bitrate: 1994979, codecs: "avc1.4d401f", height: 480, trackId: "f3-v1-x3", width: 848 }
|
||||
{ index: 0, bitrate: 3987904, codecs: "avc1.640028", height: 720, trackId: "f1-v1-x3", width: 1280 },
|
||||
{ index: 1, bitrate: 7981888, codecs: "avc1.640028", height: 1080, trackId: "f2-v1-x3", width: 1920 },
|
||||
{ index: 2, bitrate: 1994979, codecs: "avc1.4d401f", height: 480, trackId: "f3-v1-x3", width: 848 }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -550,7 +550,8 @@ Payload:
|
||||
|
||||
| Property | Type | Description |
|
||||
| -------- | ------- | ------------------------------------- |
|
||||
| trackId | number | Internal track ID |
|
||||
| index | number | index of the track |
|
||||
| trackId | string | Internal track ID |
|
||||
| codecs | string | MimeType of codec used for this track |
|
||||
| width | number | Track width |
|
||||
| height | number | Track height |
|
||||
@@ -563,7 +564,8 @@ Example:
|
||||
{
|
||||
videoTracks: [
|
||||
{
|
||||
trackId: 0,
|
||||
index: O,
|
||||
trackId: "0",
|
||||
codecs: 'video/mp4',
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
|
Reference in New Issue
Block a user