Skip to content

Better API for the track variants #758

Closed
@Ross-cz

Description

@Ross-cz
  • What version of Shaka Player are you using? 395cc17

I would like to know easily, whether the track variants has video, audio or subtitle track. Now I have to check for a comma inside codecs. Here is sample output from the method getVariantTracks():
{"id":7,"active":false,"type":"variant","bandwidth":1799135,"language":"en","kind":null,"width":1920,"height":1080,"frameRate":23.976023976023978,"mimeType":"video/mp4","codecs":"avc1.640032, mp4a.40.2","primary":false}

It would be nice to have properties grouped instead of merged.
Btw, is it necessary to output constant property type = 'variant'?

Thanks!

Metadata

Metadata

Labels

flag: good first issueThis might be a relatively easy issue; good for new contributorsstatus: archivedArchived and locked; will not be updatedtype: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions