Re: [Flashcoders] NetStream.play() - Start parameter
I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
I'm not sure but I think the extra parameters only apply to streaming video (aka, video from FMS). There's a lot more info here: http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm I did a quick test with a local flv and couldn't get it to work, though this bit of code did work (but ugly)... nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.play(MVI_2739.flv); vid.attachVideo(ns); ns.onMetaData = function(d) { this.seek(10); } john On Apr 5, 2007, at 9:12 AM, leolea wrote: I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
Hi, If you want to start playing at 10 seconds you have to first, buffer your video to 10 seconds. (or 15) wait for your buffer to be full, then do your seek operation. That is if you're doing it as a progressive download. If you stream using FMS or something like it, FMS will automatically handle the pre-buffering and notify you when it's ready. bufferTime(15) //buffer the video to 15 seconds //create your netStream blah blah nc= //net connection, you know the drill //bla blah blah myNetStream_ns = new NetStream(nc) // myNetStream_ns.onStatus(infoObj:Object){ for (var prop in infoObject) { if (infoObject[prop] == NetStream.Buffer.Full) { //buffer has enough data now seek myNetStream_ns.seek(10) } if (infoObject[prop] == NetStream.Buffer.Empty) { // you can handle loading issues here. if the buffer runs empty means the progressive d/l is too slow. } if (infoObject[prop] == NetStream.Play.Stop) { // know when it stops } } } also when you run the seek() call the invalid time return also gives you the last valid time you can set up a handler to automatically seek to the last valid time that way. On 4/5/07, john robinson [EMAIL PROTECTED] wrote: I'm not sure but I think the extra parameters only apply to streaming video (aka, video from FMS). There's a lot more info here: http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm I did a quick test with a local flv and couldn't get it to work, though this bit of code did work (but ugly)... nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.play(MVI_2739.flv); vid.attachVideo(ns); ns.onMetaData = function(d) { this.seek(10); } john On Apr 5, 2007, at 9:12 AM, leolea wrote: I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
You're right the documention is *very* thin. Have you tried getting the effect you're after with NetStream.seek(50)? -Steven --- leolea [EMAIL PROTECTED] wrote: Hi, Has anyone used the Start:Number parameter from the NetStream.Play() method ? There isn't much documentation from Adobe. I want to start the playback of a FLV at, say, 5 seconds... So logically I would do: netStream.play(flvPath, 15); But it's always playing from 0... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] NetStream.play() - Start parameter
netStream.play(flvPath); netStream.seek(5); BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of leolea Sent: Wednesday, April 04, 2007 12:20 PM To: Flashcoders mailing list Subject: [Flashcoders] NetStream.play() - Start parameter Hi, Has anyone used the Start:Number parameter from the NetStream.Play() method ? There isn't much documentation from Adobe. I want to start the playback of a FLV at, say, 5 seconds... So logically I would do: netStream.play(flvPath, 15); But it's always playing from 0... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
No workee. Still plays from 0 and spits a NetStream.Seek.InvalidTime On 4/4/07 5:05 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: netStream.play(flvPath); netStream.seek(5); BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of leolea Sent: Wednesday, April 04, 2007 12:20 PM To: Flashcoders mailing list Subject: [Flashcoders] NetStream.play() - Start parameter Hi, Has anyone used the Start:Number parameter from the NetStream.Play() method ? There isn't much documentation from Adobe. I want to start the playback of a FLV at, say, 5 seconds... So logically I would do: netStream.play(flvPath, 15); But it's always playing from 0... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
This is very strange. Calling the seek method inside the metadata event re-triggers the metadata event, resulting in an endless seeking loop... On 4/4/07 6:02 PM, Alon Zouaretz [EMAIL PROTECTED] wrote: you would have to play it till it call the metadata event first only then you can start manipulating the stream, I would recommend to set the video object to visible false and the set it to visible true on the metadata event, then you should be able to seek it to any point hth, a On 4/4/07, leolea [EMAIL PROTECTED] wrote: No workee. Still plays from 0 and spits a NetStream.Seek.InvalidTime On 4/4/07 5:05 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: netStream.play(flvPath); netStream.seek(5); BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of leolea Sent: Wednesday, April 04, 2007 12:20 PM To: Flashcoders mailing list Subject: [Flashcoders] NetStream.play() - Start parameter Hi, Has anyone used the Start:Number parameter from the NetStream.Play() method ? There isn't much documentation from Adobe. I want to start the playback of a FLV at, say, 5 seconds... So logically I would do: netStream.play(flvPath, 15); But it's always playing from 0... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] NetStream.play() - Start parameter
You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
Read the docs and it will all come clear. Ah ha ha! That's hilarious. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com