Re: [Flashcoders] web video
it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder one way to access them is like: import fl.video.VideoEvent; import fl.video.MetadatEvent; myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); function doThis(e:Event):void{ } ... On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder there is no need to embedd such end cuepoints into the file, you can as well add them programmatically at runtime (using the addASCuePoint method), which results in much higher flexibility. but actually I don't think you need any cuepoints at all just to detect the end of your video, for this purpose you can simply use the existing VideoEvents (and check e.g. for VideoEvent.COMPLETE). cheers, valentin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Valentin Schmidt wrote: Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder there is no need to embedd such end cuepoints into the file, you can as well add them programmatically at runtime (using the addASCuePoint method), which results in much higher flexibility. but actually I don't think you need any cuepoints at all just to detect the end of your video, for this purpose you can simply use the existing VideoEvents (and check e.g. for VideoEvent.COMPLETE). my bad, for some reason I had thought the OP just wanted know when the file has reached the end, but actually he asked for reaching second 45. anyway, it should be no problem to prammatically add a cuepont at second 45 using FLVPlayback's addASCuePoint() method. cheers, valentin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3 those are events, here is my as and I don't know why this is not working; import fl.video.MetadataEvent; import fl.video.VideoEvent; miMovie.addEventListener(MetadataEvent.CUE_POINT, cp); function cp(e:MetadataEvent):void { trace(start); if (e.info.name==cp1) { trace(we are cp1); } if (e.info.name==cp2) { trace(we are cp2); } if (e.info.name==cp3) { trace(we are cp3); } } On Mar 3, 2010, at 10:11 AM, Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder one way to access them is like: import fl.video.VideoEvent; import fl.video.MetadatEvent; myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); function doThis(e:Event):void{ } ... On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
help!!! the events are not working the way they were supposed on the tutorial, the first cue point should be always at 0? becuae I have it with other value. Gus On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote: I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3 those are events, here is my as and I don't know why this is not working; import fl.video.MetadataEvent; import fl.video.VideoEvent; miMovie.addEventListener(MetadataEvent.CUE_POINT, cp); function cp(e:MetadataEvent):void { trace(start); if (e.info.name==cp1) { trace(we are cp1); } if (e.info.name==cp2) { trace(we are cp2); } if (e.info.name==cp3) { trace(we are cp3); } } On Mar 3, 2010, at 10:11 AM, Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder one way to access them is like: import fl.video.VideoEvent; import fl.video.MetadatEvent; myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); function doThis(e:Event):void{ } ... On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Hi Gus, I have this code for mine, and its AS2, but maybe it can help steer you in the right direction. var currentCuePoint:String; var isPaused:Boolean = false; var listenerObject:Object = new Object(); listenerObject.cuePoint = function(eventObject:Object):Void { currentCuePoint = eventObject.info.name; pauseVideo(); } myVideo_mc.myVideo.addEventListener(cuePoint, listenerObject); function pauseVideo():Void { isPaused = true; myVideo_mc.myVideo.pause(); } Karl On Mar 3, 2010, at 10:42 AM, Gustavo Duenas wrote: help!!! the events are not working the way they were supposed on the tutorial, the first cue point should be always at 0? becuae I have it with other value. Gus On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote: I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3 those are events, here is my as and I don't know why this is not working; import fl.video.MetadataEvent; import fl.video.VideoEvent; miMovie.addEventListener(MetadataEvent.CUE_POINT, cp); function cp(e:MetadataEvent):void { trace(start); if (e.info.name==cp1) { trace(we are cp1); } if (e.info.name==cp2) { trace(we are cp2); } if (e.info.name==cp3) { trace(we are cp3); } } On Mar 3, 2010, at 10:11 AM, Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder one way to access them is like: import fl.video.VideoEvent; import fl.video.MetadatEvent; myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); function doThis(e:Event):void{ } ... On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
not to throw you off or anything but you can use the playhead time of the video as well w/o cue points. If you are getting any stats from the video then I would just get this from there. On Wed, Mar 3, 2010 at 3:04 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hi Gus, I have this code for mine, and its AS2, but maybe it can help steer you in the right direction. var currentCuePoint:String; var isPaused:Boolean = false; var listenerObject:Object = new Object(); listenerObject.cuePoint = function(eventObject:Object):Void { currentCuePoint = eventObject.info.name; pauseVideo(); } myVideo_mc.myVideo.addEventListener(cuePoint, listenerObject); function pauseVideo():Void { isPaused = true; myVideo_mc.myVideo.pause(); } Karl On Mar 3, 2010, at 10:42 AM, Gustavo Duenas wrote: help!!! the events are not working the way they were supposed on the tutorial, the first cue point should be always at 0? becuae I have it with other value. Gus On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote: I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3 those are events, here is my as and I don't know why this is not working; import fl.video.MetadataEvent; import fl.video.VideoEvent; miMovie.addEventListener(MetadataEvent.CUE_POINT, cp); function cp(e:MetadataEvent):void { trace(start); if (e.info.name==cp1) { trace(we are cp1); } if (e.info.name==cp2) { trace(we are cp2); } if (e.info.name==cp3) { trace(we are cp3); } } On Mar 3, 2010, at 10:11 AM, Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder one way to access them is like: import fl.video.VideoEvent; import fl.video.MetadatEvent; myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); function doThis(e:Event):void{ } ... On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: it might start automatically Gus On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
in case you want to follow my suggestion and simply use programmatical ASCuepoints of hardcoded cuepopints, here same simple sdemo code that works fine: import fl.video.*; var myFLV:FLVPlayback = new FLVPlayback(); myFLV.source = test.flv; myFLV.addASCuePoint({time:0.5, name:cp1}); myFLV.addASCuePoint({time:1.0, name:cp2}); myFLV.addEventListener(MetadataEvent.CUE_POINT, function(e:MetadataEvent):void{ trace(Cuepoint reached: +e.info.name); }); myFLV.x = myFLV.y = 0; addChild(myFLV); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Valentin Schmidt wrote: in case you want to follow my suggestion and simply use programmatical ASCuepoints of hardcoded cuepopints, here same simple sdemo code that works fine: I'm sorry, I was very distracted :-) once more: ... use programmatical ASCuepoints instead of hardcoded cuepoints, here some simple demo code that works fine: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] web video
Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Use cuePoints... Google that. Each triggers an event. Thanks, Eric On Mar 2, 2010, at 7:40 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
I think cue points are your friend on this one. You have to put cue points in your video then reference the cue points in your AS. Karl Sent from losPhone On Mar 2, 2010, at 6:40 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Google AS3 cue points Karl Sent from losPhone On Mar 2, 2010, at 6:40 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Or, you could trigger a timer when it starts and when it hits 45 seconds call your function. Are your users pressing play or does it start automatically? --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] web video Sent: Mar 2, 2010 6:40 PM Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders