
Reading cuepoints from onMeta event
Hello,
first let me say that you guys rock, JWPlayer is a amazing player!
I'm on the road to migrate our player from flowplayer to jwplayer.
So, we have .flv and .mp4 files with cuepoints on then. For historical reasons our files have those cuepoints using a format that I think is not a properly way to setup a cuepoint, above is a output from flvdump of our current cuepoint format:
bc.. ....
Tag type: Meta
Body length: 20
Timestamp: 1118
* Metadata event name: slideChanger
* Metadata contents: '3'
Previous tag size: 31
....
The thing is that this event is not fired by onMeta using a player setup like this:
bc.. ....
jwplayer().onMeta(function(event) {
console.log(event.metadata);
});
....
It's important note that flowplayer fire this event perfectly using the onCuePoint callback.
On the other hand I've add a cuepoint to the same file using RichFLV for test purposes and it looks like this using flvdump:
bc.. ....
--- Tag #1 at 0xD (13) ---
Tag type: Meta
Body length: 259
Timestamp: 0
* Metadata event name: onMetaData
* Metadata contents: {
'creationdate' => 'Thu Apr 5 13:14:30'
'metadatacreator' => 'RichFlv'
'duration' => 6.897
'cuePoints' => {
'0' => {
'time': 5000
'parameters': {
'foo': 'bar'
}
'name': 'onCuePoint'
'type': 'event'
}
}
'lastkeyframetimestamp' => 6.177
'lasttimestamp' => 7.006
}
....
And this event is fired by onMeta callback.
So, there is a way to get my current custom cuepoint event using jwplayer without have to change theses files to a different cuepoint format?
I'm using JWPlayer 5.9.