![](https://secure.gravatar.com/avatar/afe051dd446511507d3dc2f778c95073?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
WebVTT on meta event
I have a WebVTT track with json data and I need meta events fired so that I can show a related image or data. I only need this for Chrome Desktop.
When I load the WebVTT track as subtitles, it shows the text overlaid with the video. So I know the WebVTT loads correctly. But when I change the type to metadata, I do not get events for on('meta'). What else do I need to do to make this work?
Thanks!
me.jwplayerInstance.setup({
hlshtml: true,
primary: 'html5',
autostart: true,
autoplay: true,
width: '100%',
height: '300px',
playlist: {
file: url,
preload: 'metadata',
tracks: [{
file: vttUrl,
'default': true,
label: 'English',
srclang: 'en',
kind: 'metadata' //subtitles, metadata, captions, descriptions, chapters
}]
}
});