[flexcoders] flv video stepping

2007-04-25 Thread john_69_11
I've created a flv video player and have a step button to slowly move
through the video. This step button is really just a hack, on mouse
down it plays the video, on mouse up it pauses. Only problem is that
the playheadTime from the video is being reported erratically when
using this function. When I play the video normally vs when step is
used, at the same point in the video the playheadTime is reported
differently (stepping shows an earlier time than normal playing).

Has anyone else ran into something similar? Is there a better way to
do stepping or a more accurate way to obtain the playhead time?

Thanks for the help,

-John



[flexcoders] Re: Flex Fullscreen Apps

2007-02-27 Thread john_69_11
Not browser resizing, the new fullscreen option
stage.displayState = StageDisplayState.FULL_SCREEN;

Figured this out by just setting the stage.scaleMode = EXACT_FIT

Works perfect now


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 26 Feb 2007, john_69_11 wrote:
  though.  Do I need to manually change the sized/position of all my
  components when changing between normal and fullscreen or am I doing
 
 If you've absolutely positioned them, yes.
 You'd have the same problem if someone resized the browser window.
 
 -- 
 Tom Chiverton
 Helping to widespreadedly pursue next-generation bandwidth
 at http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Flash Video Player

2007-02-27 Thread john_69_11
I've created a flv video player and have a step button to slowely move
through the video.  This step button is really just a hack, on mouse
down it plays the video, on mouse up it pauses.  Only problem is that
when reporting the playheadTime from the video.  When I play the video
normally vs when step is used at the same point in the video the
playhead time is reported differently (stepping shows an earlier time
than normal playing).  Has anyone else ran into something similar?  Is
there a better way to do stepping or a more accurate way to obtain the
playhead time?

Thanks for the help,

-John



[flexcoders] Flex Fullscreen Apps

2007-02-26 Thread john_69_11
Hi, I have a flex app that I want to be able to make fullscreen and
was having some problems with it.  I looked at the tutorial on adobes
site, and can get full screen to work but the components in my app
don't change size when going into fullscreen mode.  I've found that
setting the height and width on my components to 100% will cause them
to change size, all my components are absolutly sized and positioned
though.  Do I need to manually change the sized/position of all my
components when changing between normal and fullscreen or am I doing
something wrong?

Thanks for the help,

-john



[flexcoders] navigateToUrl Problem

2007-02-21 Thread john_69_11
using navigateToUrl like this:

navigateToURL(new URLRequest(http://google.com;),_self);

In firefox it opens in the same window fine, in IE it's opening a new
window.  How can I make this work in both?



[flexcoders] File Upload and Session

2007-02-16 Thread john_69_11
I'm trying to do a file upload to a server (running rails if that
matters).  When I upload the file it gets sent to the server fine, but
gets it's own seperate session.  There is also no way to pass a result
(like the stored filename) back to flash.  Does anyone know of a way
to get around this?

Thanks,

-John



[flexcoders] Re: FABridge

2007-02-01 Thread john_69_11
Just downloaded the new release, works great in safari, thanks a lot!

-John

--- In flexcoders@yahoogroups.com, David Mendels [EMAIL PROTECTED] wrote:

 Hi,
  
 There is a release of the Flex AJAX bridge scheduled in the next week.
 Check labs.adobe.com later this week.
  
 Regards,
 David
 Adobe
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of john_69_11
 Sent: Friday, January 26, 2007 11:54 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FABridge
 
 
 
 I was just wondering what the status for this next release was. If
 there wont be anything soon and I could get a little bit of direction
 of how to fix this problem I could do it myself, I've taken a look at
 the javascript but I get lost very quickly.
 
 Thanks,
 
 -John
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , David Mendels dmendels@ wrote:
 
  Hi,
  
  expect a new build on labs very soon (within a week it is expected,
 but
  not guaranteed.)
  
  -David
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of john_69_11
  Sent: Tuesday, January 09, 2007 11:38 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] FABridge
  
  
  
  Is anyone else out there using FABridge? I'm testing it out on Safari
  and getting js errors, has anyone else ran into this and possible
  solutions? The exception I get is:
  
  Value undefined (result of expression this.target.getRoot) is not
  object.
  FABridge.js, line 191
  
  If I could get any help at all with this I would really apprechiate
 it.
  
  -John
 





[flexcoders] Drag and Drop onto image

2007-01-29 Thread john_69_11
I have a Composite Actionscript component that has a Image object.  I
add an event listen to my component for DragEnter and when I run it
from the Flex Builder it works fine, I get the event but when I deploy
it to my application I don't get any Drag events.  Does anyone know
why this might be or how to get around it?  I'm wondering if it's
because the image source is a remote url and the event is being bound
before th image is loaded, so the event doesn't know the actual bound
of the component.  I'm stretching, but that's all I can think of.  Thanks,

-John



[flexcoders] Re: FABridge

2007-01-28 Thread john_69_11
I was just wondering what the status for this next release was.  If
there wont be anything soon and I could get a little bit of direction
of how to fix this problem I could do it myself, I've taken a look at
the javascript but I get lost very quickly.

Thanks,

-John

--- In flexcoders@yahoogroups.com, David Mendels [EMAIL PROTECTED] wrote:

 Hi,
  
 expect a new build on labs very soon (within a week it is expected, but
 not guaranteed.)
  
 -David
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of john_69_11
 Sent: Tuesday, January 09, 2007 11:38 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FABridge
 
 
 
 Is anyone else out there using FABridge? I'm testing it out on Safari
 and getting js errors, has anyone else ran into this and possible
 solutions? The exception I get is:
 
 Value undefined (result of expression this.target.getRoot) is not
 object.
 FABridge.js, line 191
 
 If I could get any help at all with this I would really apprechiate it.
 
 -John





[flexcoders] Re: Mouse Events

2007-01-22 Thread john_69_11
Just wondering if anyone has any idea what is going on with this.  Am
I doing something wrong or is this the normal behaviour?

-John


--- In flexcoders@yahoogroups.com, john_69_11 [EMAIL PROTECTED] wrote:

 I am noticing that when I have handlers on mouseDown, mouseUp and
 Click all three of these events are fired (in that order) no matter
 what i do.  If i click on the object and hold it down for awhile the
 Click event is fired (as well as the others).  If i click the object
 quickly all three events are again fired.  Is this normal behaviour? 
 I'm trying to do a drag and drop object, mousedown starts drag,
 mouseup ends it.  I also want to be able to click on the object to
 make it selected.  Problem is the object should stay in the same state
 when dragged, this is impossible as far as I can tell with all three
 of these events being fired everytime.  Any help at all would be
welcome,
 
 -John





[flexcoders] Mouse Events

2007-01-15 Thread john_69_11
I am noticing that when I have handlers on mouseDown, mouseUp and
Click all three of these events are fired (in that order) no matter
what i do.  If i click on the object and hold it down for awhile the
Click event is fired (as well as the others).  If i click the object
quickly all three events are again fired.  Is this normal behaviour? 
I'm trying to do a drag and drop object, mousedown starts drag,
mouseup ends it.  I also want to be able to click on the object to
make it selected.  Problem is the object should stay in the same state
when dragged, this is impossible as far as I can tell with all three
of these events being fired everytime.  Any help at all would be welcome,

-John



[flexcoders] FABridge

2007-01-09 Thread john_69_11
Is anyone else out there using FABridge?  I'm testing it out on Safari
and getting js errors, has anyone else ran into this and possible
solutions? The exception I get is:

Value undefined (result of expression this.target.getRoot) is not object.
FABridge.js, line 191

If I could get any help at all with this I would really apprechiate it.

-John



[flexcoders] Re: FLV Thumbnail

2007-01-09 Thread john_69_11
Thanks a lot for the help, we're not using php on the server but
thanks for the offer, I have more than enough info to work with now.

Thanks again

-John

--- In flexcoders@yahoogroups.com, Andrew D. Goodfellow
[EMAIL PROTECTED] wrote:

 I basically do the same thing but I use a Windows server, PHP and
Apache2
 header rewriting to make it really pretty. If that setup is
something you
 are interested in seeing the code for I would be glad to share it. I
almost
 posted it here but I'm afraid of what might happen to me if I submit PHP
 code to an MXML/AS3 list. Worlds Colliding! ;o)
 
 -Andy
 
 On 1/8/07, Collin Peters [EMAIL PROTECTED] wrote:
 
This is the command that I use:
  ffmpeg -v 0 -y -i $OUTPUT_FILE -f mjpeg -an
$HEADSHOT_DIR/$BASE_DIR/$jpg
  21
 
  I run that in a bash shell script which is invoked by the flash
client via
  remoting
 
 
  On 1/8/07, john_69_11 [EMAIL PROTECTED] wrote:
  
 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
   Andrew D. Goodfellow
   Ya, I had heard about that. I was trying to offload some of the
   processing to the user by doing it in AS. I have found that unless
   you are getting the FLV from a server you control you will run into
   crossdomain issues when trying to process it in AS. It looks like
   I'll be following suit and using ffmpeg as well. Do you have any
   suggestions/links on how to set it up? I want to process remote flvs
   for now and eventually using it to convert avi/other video
formats to
   flv.
  
   Thanks for the help,
  
   -John
  
   agoodfellow@ wrote:
   
John,
   
I don't do it in AS. I always process the flv on the fly (with
   caching of
course) with an open source tool called ffmpeg (
http://sourceforge.net/projects/ffmpeg/) and load the
thumbnail via
   url just
like an external image. It's tricky to get it working, but
once you
   do it
works wonderfully.
   
-Andy
   
On 1/8/07, john_69_11 duff.john@ wrote:

 I'm trying to generate an image thumbnail of an FLV and can't
   seem to
 find any way to do it. Only thing that people seem to be
doing is
 creating a player for the flv, then pausing and stopping the
stream
   -
 I want to grab an image of the one of the flv frames. I found a
   piece
 of code here:

 http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2

 which i tried to implement with code like this in onFrameEnter:

 //Here we will copy pixels data
 pixels = new Array()
 //Create a new BitmapData
 snap = new BitmapData(_video.width, _video.height);
 //Matrix to scale the new image
 var myMatrix:Matrix = new Matrix();
 myMatrix.scale(0.5, 0.5)
 //Copy video image
 snap.draw(_video, myMatrix);

 var w:Number = snap.width, tmp
 var h:Number = snap.height
 var a:Number = 0
 for(var b=0; b=h; b++){
 tmp = snap.getPixel32(a, b).toString(16)
 trace(tmp)
 pixels.push(tmp.substr(1))
 }
 a++
 if(aw){ //Finish capturing

 //sendData(pixels, h, w)
 //free memory
 snap.dispose()

 }

 Now, it seems like the pixels are being captured, but I'm not
   certian
 and I can't seem to display the captured image at all. I've
tried
 using an image object and a Bitmap set to the BitmapData
(variable
 snap) but it doesn't display. Anyone know of how to make
this work,
 or a better way?

 Thanks,

 John



   
  
  
 
 
  --
  Collin Peters
  Lead Software Developer
  InTouch Technology
 
   
 





[flexcoders] FLV Thumbnail

2007-01-08 Thread john_69_11
I'm trying to generate an image thumbnail of an FLV and can't seem to
find any way to do it.  Only thing that people seem to be doing is
creating a player for the flv, then pausing and stopping the stream -
I want to grab an image of the one of the flv frames.  I found a piece
of code here:

http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2

which i tried to implement with code like this in onFrameEnter:

//Here we will copy pixels data
pixels = new Array()
//Create a new BitmapData
snap = new BitmapData(_video.width, _video.height);
//Matrix to scale the new image
var myMatrix:Matrix = new Matrix();
myMatrix.scale(0.5, 0.5)
//Copy video image
snap.draw(_video,  myMatrix);

var w:Number = snap.width, tmp
var h:Number = snap.height  
var a:Number = 0 
for(var b=0; b=h; b++){
tmp = snap.getPixel32(a, b).toString(16)
trace(tmp)
pixels.push(tmp.substr(1))
}
a++
if(aw){ //Finish capturing

//sendData(pixels, h, w)
//free memory
snap.dispose()

} 

Now, it seems like the pixels are being captured, but I'm not certian
and I can't seem to display the captured image at all.  I've tried
using an image object and a Bitmap set to the BitmapData (variable
snap) but it doesn't display.  Anyone know of how to make this work,
or a better way?

Thanks,

John



[flexcoders] Re: FLV Thumbnail

2007-01-08 Thread john_69_11
--- In flexcoders@yahoogroups.com, Andrew D. Goodfellow 
Ya, I had heard about that.  I was trying to offload some of the
processing to the user by doing it in AS.  I have found that unless
you are getting the FLV from a server you control you will run into
crossdomain issues when trying to process it in AS.  It looks like
I'll be following suit and using ffmpeg as well.  Do you have any
suggestions/links on how to set it up?  I want to process remote flvs
for now and eventually using it to convert avi/other video formats to flv.

Thanks for the help,

-John



[EMAIL PROTECTED] wrote:

 John,
 
 I don't do it in AS. I always process the flv on the fly (with
caching of
 course) with an open source tool called ffmpeg (
 http://sourceforge.net/projects/ffmpeg/) and load the thumbnail via
url just
 like an external image. It's tricky to get it working, but once you
do it
 works wonderfully.
 
 -Andy
 
 On 1/8/07, john_69_11 [EMAIL PROTECTED] wrote:
 
I'm trying to generate an image thumbnail of an FLV and can't
seem to
  find any way to do it. Only thing that people seem to be doing is
  creating a player for the flv, then pausing and stopping the stream -
  I want to grab an image of the one of the flv frames. I found a piece
  of code here:
 
  http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2
 
  which i tried to implement with code like this in onFrameEnter:
 
  //Here we will copy pixels data
  pixels = new Array()
  //Create a new BitmapData
  snap = new BitmapData(_video.width, _video.height);
  //Matrix to scale the new image
  var myMatrix:Matrix = new Matrix();
  myMatrix.scale(0.5, 0.5)
  //Copy video image
  snap.draw(_video, myMatrix);
 
  var w:Number = snap.width, tmp
  var h:Number = snap.height
  var a:Number = 0
  for(var b=0; b=h; b++){
  tmp = snap.getPixel32(a, b).toString(16)
  trace(tmp)
  pixels.push(tmp.substr(1))
  }
  a++
  if(aw){ //Finish capturing
 
  //sendData(pixels, h, w)
  //free memory
  snap.dispose()
 
  }
 
  Now, it seems like the pixels are being captured, but I'm not certian
  and I can't seem to display the captured image at all. I've tried
  using an image object and a Bitmap set to the BitmapData (variable
  snap) but it doesn't display. Anyone know of how to make this work,
  or a better way?
 
  Thanks,
 
  John
 
   
 





[flexcoders] Re: flv progress bar

2007-01-04 Thread john_69_11
The attatchments didn't seem to work, but I managed to fix the problem
by having the video autoplay instead of calling the load method to
start the buffering.  Thanks anyways,

-John

--- In flexcoders@yahoogroups.com, Bruno Martins [EMAIL PROTECTED] wrote:

 Hi, I made this component, but now I don't have time to organize in
a simple
 example, but I hope to help you.
 
 On 1/3/07, john_69_11 [EMAIL PROTECTED] wrote:
 
I'm using the VideoDisplay component so it works a little
differently.
  If the video is paused calling pause again does nothing, you have to
  call play to restart the video. Maybe I'll try switching over the NS
  and NC and see if it works that way, unless someone has a solution
  with the VideoDisplay.
 
  Thanks,
 
  John
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Thijs
  Triemstra lists@ wrote:
  
   I guess you start and pause the flv so it can preload? You should
   unpause the video instead of using play again because otherwise the
   buffered netstream is replaced with a new one like you described.
  
   stream = new NetStream(nc);
   // start preloading
   stream.play(flvname);
   // pause the stream so it can continue preloading without playback
   stream.pause(true);
   // when you press play it unpauses and starts playing the buffered
   stream
   stream.pause(false);
  
  
   Thijs
  
  
   Op 2-jan-2007, om 22:49 heeft john_69_11 het volgende geschreven:
  
Hi, I'm trying to put together an flv player with a progress
bar and
videodisplay object. I am using the progress event and when the
player first loads the progress shows fine, but when i hit the
play
button (calling videoDisplay.play()) it throws away the buffer and
starts over. This only happens the first time I hit play. any
ideas?
   
Thanks,
   
John
   
   
   
  
 
  
 
 
 
 
 -- 
 Bruno Gustavo Martins
 Office: (11)3443-9527
 experience everywhere
 http://www.dclick.com.br/blog





[flexcoders] Re: flv progress bar

2007-01-03 Thread john_69_11
I'm using the VideoDisplay component so it works a little differently.
 If the video is paused calling pause again does nothing, you have to
call play to restart the video.  Maybe I'll try switching over the NS
and NC and see if it works that way, unless someone has a solution
with the VideoDisplay.

Thanks,

John

--- In flexcoders@yahoogroups.com, Thijs Triemstra [EMAIL PROTECTED] wrote:

 I guess you start and pause the flv so it can preload? You should  
 unpause the video instead of using play again because otherwise the  
 buffered netstream is replaced with a new one like you described.
 
 stream = new NetStream(nc);
 // start preloading
 stream.play(flvname);
 // pause the stream so it can continue preloading without playback
 stream.pause(true);
 // when you press play it unpauses and starts playing the buffered  
 stream
 stream.pause(false);
 
 
 Thijs
 
 
 Op 2-jan-2007, om 22:49 heeft john_69_11 het volgende geschreven:
 
  Hi, I'm trying to put together an flv player with a progress bar and
  videodisplay object. I am using the progress event and when the
  player first loads the progress shows fine, but when i hit the play
  button (calling videoDisplay.play()) it throws away the buffer and
  starts over. This only happens the first time I hit play. any ideas?
 
  Thanks,
 
  John
 
 
 





[flexcoders] flv progress bar

2007-01-02 Thread john_69_11
Hi, I'm trying to put together an flv player with a progress bar and
videodisplay object.  I am using the progress event and when the
player first loads the progress shows fine, but when i hit the play
button (calling videoDisplay.play()) it throws away the buffer and
starts over.  This only happens the first time I hit play.  any ideas?

Thanks,

John



[flexcoders] flv player

2006-12-11 Thread john_69_11
I'm trying to make an flv player using Flex 2 and AS3, things are
going pretty well.  I want to add a stepping button so that you can
step through one frame at a time (forward or back).  Right now I've
managed to figure out the frame using the framerate and total duration
(this isn't perfect, but closest thing I could come up with).  The
problem I am having is that some of the flv files (which I cannot
change) have keyframes with odd spaceing (7 seconds in between!) so
when I do a seek to a time between keyframes it doesn't go to that
spot, rather, one of the keyframes.

Does anyone know of a better way to do this?  I was using the
VideoDisplay object as t eh base for my player at one point and I
think when seeking with that it would work a little better, am I just
getting confused?  If not, how does the VideoDisplay manage this?

Thanks for the help,

John



[flexcoders] Re: FLV Duration

2006-12-06 Thread john_69_11
I tried the flvtool2 and couldn't really figure it out, didn't spend a
whole lot of time with it though.  Found another tool that does the
same thing and I was able to figure out quickly.  FLVMDI,
http://www.buraks.com/flvmdi/, has commandline and gui options, can
output a new flv with the metadata as well outputing an xml of the
data.  Thanks for the help everyone, hopefully this will save others a
bit of trouble as well.

-John



--- In flexcoders@yahoogroups.com, Sönke Rohde [EMAIL PROTECTED] wrote:

 Hi,
 
 If it was not encoded with metadata why not inject that metadata with
 FLVTool2?
 If there is no metadata you will not be able to get the duration.
Another
 possibility would be to use the print command of FLVTool2 to
determine the
 duration instead of injecting it.
 
 Cheers,
 Sönke 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
  Sent: Tuesday, December 05, 2006 6:32 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: FLV Duration
  
  again, only works if the flv was encoded correctly with the metadata
  
  --- In flexcoders@yahoogroups.com, Matt Horn mhorn@ wrote:
  
   If you're using the VideoDisplay component, you can get the 
  length of
   the FLV file using the totalTime property. 
   
   hth,
   matt horn
   flex docs 
   
-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
Sent: Monday, December 04, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FLV Duration

Is there an easy way to figure out the duration of an FLV 
thati s being played? I have been looking at the NetStream 
object and the onMetaData event, but it seems like the FLV 
does not always have the metadata set. The FLVs I want to 
play are created my other people, so there is no way to force 
them to add the metadata. is there any way to easily get 
  around this?



 
   
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
  
  
  
 





[flexcoders] Re: FLV Duration

2006-12-05 Thread john_69_11
How does this tool work, I was looking at it yesterday and couldn't
really figure it out.  I ran an flv through it and couldn't see how to
get the duration out of it.It looked to me like all you could do was
add stuff to the flv, not get information out of it.  If I am wrong
(and I hope so) please let me know how I could use this to figure out
the duration of an flv

-John

--- In flexcoders@yahoogroups.com, The Morans [EMAIL PROTECTED] wrote:

 You could pass everything through FLVTool2 on the server to inject  
 metadata...problem solved!
 
 This is something we do with flvs made from ffmpeg.
 
 sean
 
 http://inlet-media.de/flvtool2
 
 
 On Dec 4, 2006, at 2:45 PM, Stacy Young wrote:
 
  I'm curious to know myself, I will poke around. In the meantime … 
  I'd also post this to flashcoders. Since we're talking Actionscript  
  specifically, there's a much higher percentage of folks on there  
  that work with video.
 
 
 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
  Cheers,
 
  Stace
 
 
 
  From: flexcoders@yahoogroups.com  
  [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
  Sent: Monday, December 04, 2006 4:13 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] FLV Duration
 
 
 
  Is there an easy way to figure out the duration of an FLV thati s
  being played? I have been looking at the NetStream object and the
  onMetaData event, but it seems like the FLV does not always have the
  metadata set. The FLVs I want to play are created my other people, so
  there is no way to force them to add the metadata. is there any way
  to easily get around this?
 
  
 
 





[flexcoders] Re: FLV Duration

2006-12-05 Thread john_69_11
onMetaData only works if the flv has been encoded with the metadata,
there is no way to garuntee that this has happened though

-John


--- In flexcoders@yahoogroups.com, John Kirby [EMAIL PROTECTED] wrote:

 Via onMetaData you should be able to get duration.  Have you tried 
 something like this?
 
 private function playStream():void {

   
 stream = new NetStream(nc);

 stopTimer();

videoHolder = new UIComponent();
videoHolder.setActualSize(defaultWidth, defaultHeight);
video = new Video(defaultWidth, defaultHeight);
   
video.attachNetStream(stream);
   
stream.play(streamVideoURL);
   
 stream.addEventListener(NetStatusEvent.NET_STATUS, 
 streamStatusHandler);
 var client:Object = new Object();
 client.onMetaData = onMetaData;
   
 stream.client = client

 }

 public function onMetaData(info:Object):void {
 duration = info.duration;
 fRate = info.framerate;
 totalBytes = info.bytesTotal;
 metaWidth = info.width;
 metaHeight = info.height;
  }
 
 john_69_11 said the following:
 
  Is there an easy way to figure out the duration of an FLV thati s
  being played? I have been looking at the NetStream object and the
  onMetaData event, but it seems like the FLV does not always have the
  metadata set. The FLVs I want to play are created my other people, so
  there is no way to force them to add the metadata. is there any way
  to easily get around this?
 
   
 
 -- 
 /Whether you think that you can, or that you can't, you are usually
right./
  - Henry Ford





[flexcoders] Re: FLV Duration

2006-12-05 Thread john_69_11
again, only works if the flv was encoded correctly with the metadata

--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote:

 If you're using the VideoDisplay component, you can get the length of
 the FLV file using the totalTime property. 
 
 hth,
 matt horn
 flex docs 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
  Sent: Monday, December 04, 2006 4:13 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] FLV Duration
  
  Is there an easy way to figure out the duration of an FLV 
  thati s being played? I have been looking at the NetStream 
  object and the onMetaData event, but it seems like the FLV 
  does not always have the metadata set. The FLVs I want to 
  play are created my other people, so there is no way to force 
  them to add the metadata. is there any way to easily get around this?
  
  
  
   
 





[flexcoders] Re: flv playback

2006-12-04 Thread john_69_11
One of the problems is that I cannot modify the existing flv that I
want to play.  You mentioned key frames in this post, I was looking at
the video and netstream objects and I can use those to play an flv,
but they do not seem to have methods to navigate to a specific frame
either.  Looking at it again today I noticed the seek method which
says it goes to key frames, are these just the normal frames in a
movie or do you have set those when the video is encoded?  Any other
ideas would be welcome

-John


--- In flexcoders@yahoogroups.com, Sönke Rohde [EMAIL PROTECTED] wrote:

 Hi John,
 
 You could use CuePoints for this purpose. Encode your video with
navigation
 cuepoints (which sit on keyframes) and you can read out the
CuePoints after
 the FLV is loaded.
 
 Cheers,
 Sönke 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
  Sent: Sunday, December 03, 2006 10:39 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] flv playback
  
  I want to be able to play an flv file and provide controls to jump to 
  a specific frame in the flv.  Currently i am using the VideoDisplay, 
  but everything it does is based on times (playhead time).  I noticed 
  that actionscript 2 had controls such as flvplayback and objects like 
  the videoplayer that provided operations such as these, are there 
  equivalents in actionscript 3?  if not does anyone know of 
  another way 
  to do something like this?  Thanks for the help,
  
  John
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
  
  
  
 





[flexcoders] FLV Duration

2006-12-04 Thread john_69_11
Is there an easy way to figure out the duration of an FLV thati s
being played?  I have been looking at the NetStream object and the
onMetaData event, but it seems like the FLV does not always have the
metadata set.  The FLVs I want to play are created my other people, so
there is no way to force them to add the metadata.  is there any way
to easily get around this?



[flexcoders] flv playback

2006-12-03 Thread john_69_11
I want to be able to play an flv file and provide controls to jump to 
a specific frame in the flv.  Currently i am using the VideoDisplay, 
but everything it does is based on times (playhead time).  I noticed 
that actionscript 2 had controls such as flvplayback and objects like 
the videoplayer that provided operations such as these, are there 
equivalents in actionscript 3?  if not does anyone know of another way 
to do something like this?  Thanks for the help,

John