Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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.

8 Community Answers

JW Player

User  
0 rated :

Yes, here http://jwplayer.eventials.com/index.html

There are cuepoints on this video for each time where the speaker move to a slide.

The first cuepoin starts around 01:25-01:35.

I'm logging all metadata and there is no metada for cuepoints been showed.

JW Player

User  
0 rated :

Yeah would like an answer to this as well. Been moving our site away from the current player to JWPlayer as well. Looking to find a way to pull the markers out of an existing mp4 set of files.

Inside getMeta().data it has an xml formatted cue and marker points, it gets you straight to the object with

bc.. jwplayer().onMeta(function(event) {
console.log(event.metadata);
});



function as Victor has displayed. However I can't for the life of me figure out how to make it useful.

JW Player

User  
0 rated :

Actually it's not. If you get the .flv from my sample and dump it using a tool like flvdump you will see that the metadata are all over the file, not on the beginning of it like you said, by the way that is the way wowza saves those cuepoints.

The metadata comes on the beginning of the file if the cuepoints are saved using a tool like richflv which is not my case.

So, to summarize I need to knwon how to make jwplayer read cuepoints saved by wowza that comes all over the file and not as a blob on the beginning of it.

Pablo

JW Player Support Agent  
0 rated :

@Victor -

I can’t say why, but the onMetaData event does not fire in the player for your video. Have you tried playing the file directly via progressive download, as opposed to via RTMP?

JW Player

User  
0 rated :

@PabloS

Yes, you can access it here http://jwplayer.eventials.com/progressive.html

Even using progressive download it doesn't works.

Pablo

JW Player Support Agent  
0 rated :

@Victor -

Your file doesn’t appear to have valid FLV metadata – at least not with the tools I have. I would advise building your cuepoint mechanism outside of the file container, using JavaScript for example.

JW Player

User  
0 rated :

@Pablo

Yes, you are probably right, even knowing that I can see those cuepoints with a tool like flvdump I known that Wowza is saving then in a weird way. But flowplayer is able to read those weid cuepoints anyway.

So, I was wondering that may be you guys can fix this on JWPlayer and start support this extra feature that is used by tons of people that use one of the most known streaming tool that is Wowza.

About building cuepoints using javascript, we've already tried this without success, mostly because is very hard to sync a live video with cuepoints, that due to the fact that JWPlayer seems to have some problems with live stream and buffer lenght, I mean the latency is always unknown and the video will always lag behind, shifting from 5s to 15s as time goes on. So the JWPlayer live stream is non linear as I can tell and that is a blocking issue.

Also, we have tried to make a low latency stream and just change things realtime as we get those cuepoints, but this non linear live stream problem is blocking this approach too.

Pablo

JW Player Support Agent  
0 rated :

@Victor -

I can’t promise we can devote a lot of time to this. I don’t know of many people who are using embedded FLV metadata. In fact, the overall usage of FLV is going way down, since MP4 can be used for HTML5 / mobile setups in addition to just flash.

If you absolutely need cuepoints, you may be able to come up with a solution (the functionality does exist in the player, although it is not fully supported or tested), but I don’t have any additional ideas.

This question has received the maximum number of answers.