streaming-video-technology-alliance / common-media-library

A common library for media playback in JavaScript
Other
39 stars 2 forks source link

Investigate video.js ID3 usage for possible replacement with CML #84

Open littlespex opened 7 months ago

littlespex commented 7 months ago

Investigate video.js ID3 usage for possible replacement with CML

felipeYoungi commented 7 months ago

We are trying to add the id3 module from the common media library into video.js. Does Video.js support id3? No, Video.js does not support id3 on its own. However, there is a plugin that comes as a dependency of Video.js, starting from version 7 the plugin is http-streaming and for previous versions, the plugin is videojs-contrib-hls (now deprecated). If we want to integrate the id3 module from the CML into Video.js, can we? No, since Video.js does not handle id3 on its own. What we can try to do is integrate the CML module into the plugin. What problems does importing the library into the plugin bring? This library transforms ID3 Metadata into HTML5 metadata text tracks. Therefore, the id3 metadata would have a different format than what the plugin currently handles. @littlespex what do you think about this?

littlespex commented 7 months ago

Converting ID3 to html5 metadata cues is exactly what hls.js does. What utility function is the plugin using now to parse ID3 tags?