[Xerte] Controlling an flv

Dave Burnett d_b_burnett at hotmail.com
Thu Jan 6 10:37:36 GMT 2011


Thanks Jules.

I had just figured it out about 2 minutes before.
I had to add an onMovieReady event before trying to add the cue point.

Still a bit bizarre that "stop" and "pause" actually did what they did.
Now they just act like event triggers, with no effect on the movie.



From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 6 Jan 2011 10:00:46 +0000
Subject: RE: [Xerte] Controlling an flv



This works here. MOV //id=’mv’SCR //mv.setASCuePoint(5, ‘jules’);INT  EVT //icon:mv, eventName: jules    SCR //debug(“event happened”); Rlo is attached.   From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 05 January 2011 21:58
To: Xerte list
Subject: RE: [Xerte] Controlling an flv 
common_video.addASCuePoint(44.500, "stop"); //stops the movie at that time index

I am listening for events, none are being thrown.
Using 'stop' in there just stops the movie, it does not throw an event.

icon: common_video
event: stop

common_video.addASCuePoint(44.500, "dave"); //doesn't do anything at all. No event, no change in movie. 

icon: common_video
event: dave


From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 5 Jan 2011 21:33:03 +0000
Subject: RE: [Xerte] Controlling an flvdon't you listen for the events you fired? i.e. stop from common_video because you added the event 'stop': common_video.addASCuePoint(44.500, "stop"); //stops the movie at that time index and fires an event called 'stop' From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]
Sent: 05 January 2011 19:22
To: Xerte list
Subject: RE: [Xerte] Controlling an flv
Bizarre.

common_video.addASCuePoint(44.500, "stop"); //stops the movie at that time index
common_video.addASCuePoint(44.500, "pause"); //pauses the movie at that time index

But I can't find a way to trap an event.

From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 14:53:21 +0000
Subject: RE: [Xerte] Controlling an flvThe flvplayback event is ‘ready’ so broadcast ‘onMovieReady’ With subsequent flash releases the event naming conventions were getting mangled. Until then  it had always been onMyEventName, so I wanted to stick with the conventions, but could see the writing on the wall for trying to stick with the conventions… J From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 04 January 2011 14:47
To: Xerte list
Subject: RE: [Xerte] Controlling an flv 
Works.

onLoad a hangover from some other icon type I guess?From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 14:22:56 +0000
Subject: RE: [Xerte] Controlling an flvonMovieReady ?? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 04 January 2011 14:23
To: Xerte list
Subject: RE: [Xerte] Controlling an flv Any trick to the onLoad event?

I can't seem to trip it.From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 14:20:09 +0000
Subject: RE: [Xerte] Controlling an flvI think it seeks to the nearest keyframe. No, nothing will break. The only things that might need wrapping are anything that generate events, as I have to put a hook in the engine to then broadcast the event in a way you can catch. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 04 January 2011 14:19
To: Xerte list
Subject: RE: [Xerte] Controlling an flv 
What does the time index seek on?

Just wondering, are those player calls going to remain unwrapped?
Will it bust code if they are wrapped at some point?From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 14:13:08 +0000
Subject: RE: [Xerte] Controlling an flvIf I recall correctly: Seeking depends on keyframes (I think). If you only have one keyframe, frame 1, then you cannot seek anywhere. If you have a keyframe every frame, your movie will be huge – but you can seek to any frame. When you encode .flv you should bear in mind how many keyframes you need. Tell me if Christmas has addled my brain and I’m talking rubbish. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of A-P. Lian
Sent: 04 January 2011 13:56
To: Xerte discussion list
Subject: Re: [Xerte] Controlling an flv Hello

I have asked this question many times in various fora and the answer seems to be that the points only work with *real* streaming servers - otherwise cuepoints are essential. Don' t know if this helps, but I kind of despair with this as it is critical for the sorts of things I try to do. The only ray of sunshine in this scenario is to construct something with VLC which seems to work with both local and remote media (when it actually calculates the seekpoints correctly). I suspect it works because VCL is a streamer itself - not sure if it works with FLV files - it does work with mp4/mpg.

Hope this helps a bit - at least that is my experience of something I would love to be able to do.

Cheers
Andrew LianOn Tue, Jan 4, 2011 at 05:31, Dave Burnett <d_b_burnett at hotmail.com> wrote:
themovieid.seek(2) just doesn't seem to do boo.
Although it does trip an onMovieSeek event, which is supposed to mean it is finished seeking.

Tried stopping/pausing prior to calling it and nothing.
Tried putting it below a button to be sure the flv was loaded prior to call.
Tried removing the controls, no stream, etc.
Nothing.   

Maybe the cue points are de rigeur?
e.g. won't do anything with a time index?
Anyone have it working with a time index? From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 09:16:19 +0000
Subject: RE: [Xerte] Controlling an flv Under the hood is the FLVPlayback component, which you can access directly if needed. The user controls just access what you can access, so I’m not sure it makes any odds: you might want to call stop() before seeking, not sure. Use seek to jump to a particular point. You can use addASCuePoint to set up an event at a particular point on the movie’s timeline and handle onASCuePoint to pause / stop / reset the movie From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 January 2011 16:49
To: Xerte list
Subject: [Xerte] Controlling an flv 
Anyone have a template or hints on controlling which slice of an flv to show?

I have flvs that are used in multiple places, just using different segments.

Figure it uses seek and stop, but I'm sure I'll be re-inventing something, like when to determine it's OK to use seek, what's the effect if the clip is also under user control etc.

Happy New Year all!

Dave



This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. 
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. _______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
Professor Dr Andrew Lian
Vice-President of AsiaCALL
Chair, Dept. of Foreign Languages
Western Illinois University
Macomb, IL, 61455, USA
e-mail: AP-Lian at wiu.edu; website: http://www.andrewlian.com
Phone: +1 (309) 298-1558; Fax: +1 (309) 298-1060

We don't see things as they are, we see things as we are. (Anaïs Nin)
The universe is made up of stories, not atoms (Muriel Rukeyser)

When you change the way you look at things, the things you look at change (Max Planck)
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110106/d0925158/attachment-0001.html


More information about the Xerte mailing list