Closed
Description
- 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!