Hi how can i get metadata sent to a javascript function, have found a couple of topics with similer question but none seem to answer this question. I am using the latest player version just downloaded today.
as a very simple test i copied some code from a different topic and made this:
function playerReady(obj){ alert(1); player = gid(obj.id); player.addModelListener('META', 'metaMonitor'); };
I looked through the code I'm not a Flash expert by any means and it looks like the meta object is requested from a flash class, so it may not be very easy to change. On the other hand, if your name:value pair is in the meta tag, it should be retrieved by the player I think. You would have to ask the real Flash experts Jeroen & Zachary.
I'm kinda guessing that your data is not there, or it is invalid, and therefore ignored by Flash.
To find the extra layers, I expanded anything that displayed:bc.. sampledescription: [object Object] which is a indication that there is another object with a name:value pair.
Can you post a link to a video file that has Cue Points so I can test it?
yea i noticed your "trackinfo" and "sampledescription" tags in the code but they yielded no results for me.
i have placed the video im using here: www.thomassmart.com/share/galactica2.flv
i used the flash media encoder cs4 to encode it by the way and made a cue point on 10 seconds called cue10 with a parameter called IMAGE with the value being an url to an image. on 20 seconds there is another cue point called Cue Point with a parameter called LINK and and the value being an url.
Thanks again.
edit: do you have a red5 streaming server by the way? if so could you see if that video works smoothly from your server? seems to be working terrible on mine. keeps freezing and loosing its buffer and seeking doesnt work at all...
The Cue Points showup when the player hits the time. See items 5 & 6 in the dump below.
I see what you're saying, *parameters* is coming back empty! I can't get it to give up anything, no matter how I try to do it. Explicitly as *obj[j][0]* or *obj[j]['LINK']* still comes back empty. So the rest of the *parameters* object isn't being returned by the Flash Player (I guess!?!).
The only unusual thing that I see, is that LINK is all uppercase. I wonder if this a quirk in the Adobe Flash Player, that it only returns metadata in lowercase or something like that, although cuePoints does have one uppercase letter. Can you try making link all lowercase and see what happens?
Here's a full dump of the metadata from playing the full video:bc.. 1. META Data: client: FLASH WIN 9,0,124,0 canSeekToEnd: true framerate: 23.969985961914062 type: metadata duration: 60.075 videocodecid: 4 version: 4.6.248 width: 599 audiodelay: 0.027 id: playerID height: 329 cuePoints: , videodatarate: 900 audiocodecid: 2 audiodatarate: 128
maybe its something with my red5 build... :/ its like my buffer stops receiving data it just dries up and dies. it only does that with my videos and not the videos that came with the oflademo.
have made a new video with the following cue points
cue5 - 5 seconds test = hello world
cue10 - 10 seconds foo = bar
i did a slightly different encoding this time to test with my red5, sorensen codec, 800 bitrate, keyframe every 15. (didnt help by the way, still the same buffer problems.)
After trying everything that I can find on Google, I can't find a way to get the the cuePoint parameters. They simply aren't being passed, that I can find.
However, I did discover that a large XMP object is being passed and it has all of the metadata from the video, including the cuePoint parameters.
So, with a little bit of skullduggery, they are available.
i have a request. Im having real problems with buffering. its like the buffer just dries up and the video dies up and was wondering if you could help me with a bit of debugging?
would like to read my video into my player form one of your servers to see if its the player or my red5 server thats causing the issue...
Hi all, I was looking at the "willswonders simple cue points demo the other day but it seems to have gone.
Is it somewhere else? I'd love to have a sticky beak at it.
I've trawled through as many of the posts on cue points as I can. Is it possible to link to an external file to fire the cue points as we've got a nifty way of generating an xml file directly out of ppt that we've used to link to another proprietary application that converts ppt to flash.
The purpose here is so that you don't have to manually insert lines of code for each cue point.
Any info would be appreciated.
By the way the post that directed to www.briefmeetings.com had a really good implementation of synch'd slides and video (although the video was quite buffery.
It turns out to be much more useful to manipulate the XML object with a PHP script. Then you can get the Cue Points and all of the other metadata immediately after the FLV or F4V file starts loading into the player.
The code displays a couple of images on your cuepoints. Would be useful for a slideshow or whatever. Of course, you can also open windows, turn out the lights and make coffee with the correct JavaScript.
Since I didn't have access to the cuepoints (I have to learn how to write them into the video), I used a switch to load the images.
Hey how does one read metadata injected into non flash video (HTML5 http stream) ? - injection -- http://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/
Can the JW-player handle this type of metadata? Can you provide a javascript example?
This question has received the maximum number of answers.