RE: [flexcoders] FLV Duration

2006-12-05 Thread Matt Horn
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] 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?



RE: [flexcoders] FLV Duration

2006-12-04 Thread Stacy Young
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?

 

Messages in this topic
http://groups.yahoo.com/group/flexcoders/message/57942;_ylc=X3oDMTM3ZG1
yb2NnBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2d
JZAM1Nzk0MgRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNjUyNjgyMTcEdHBjSWQDNTc5NDI
- (1) Reply (via web post)
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJyc2psZG8yBF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM1Nzk0
MgRzZWMDZnRyBHNsawNycGx5BHN0aW1lAzExNjUyNjgyMTc-?act=replymessageNum=57
942 | Start a new topic
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJma2NoMnJwBF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNs
awNudHBjBHN0aW1lAzExNjUyNjgyMTc- 

Messages
http://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmbHQzdm9x
BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRy
BHNsawNtc2dzBHN0aW1lAzExNjUyNjgyMTc-  

--
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
http://groups.yahoo.com/;_ylc=X3oDMTJlYmw5N2NlBF9TAzk3MzU5NzE0BGdycElkA
zEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTE2N
TI2ODIxNw-- 





Re: [flexcoders] FLV Duration

2006-12-04 Thread John Kirby
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


Re: [flexcoders] FLV Duration

2006-12-04 Thread The Morans
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?