--- In [email protected], "Joshua Kinberg" <[EMAIL PROTECTED]>
wrote:
>
> > Which is the lowest version of Flash you want to support (7 has
> > several versions, I think the most recent is 7.2)?
>
> I'd like to support FLV, and that means both Flash 7 and Flash 8 (and
> Flash 6?? not sure if FLV was part of Flash 6).
>
> > And how are you
> > loading the FLVs?  Is it with NetConnection and NetStream or the Media
> > class?
>
> I'm using NetConnection and NetStream. Currently getting duration
> metadata through the NetStream.onMetaData method. Older versions of
> FLV simply return "undefined" because they don't properly have the
> metadata inside. Hence the need for the metadata injection.
>
> -Josh

I'm using the MediaDisplay control with the associated Media class.
Although the documentation says the total duration is only available
when the FLV completely loads, I'm abile to get it at the start of the
FLV load in the Media.progress event.  This seems to work on Flash 7.2
and 8, though I haven't thoroughly tested it.

Here's a sample of the progress event:

flvListener.progress = function(){
...

      if (nPercentLoaded > .01 && nTotalTime <= 0) {
            nTotalTime = [MediaDisplay instance name].totalTime;
      }
...
}

Let me know if this works.

  -- Enric
  -======-
  http://www.cirne.com
  http://www.cinegage.com

>
>
> On 6/2/06, Enric <[EMAIL PROTECTED]> wrote:
> > Which is the lowest version of Flash you want to support (7 has
> > several versions, I think the most recent is 7.2)?  And how are you
> > loading the FLVs?  Is it with NetConnection and NetStream or the Media
> > class?
> >
> >   -- Enric
> >   -======-
> >   http://www.cirne.com
> >   http://www.cinegage.com
> >
> > --- In [email protected], "Joshua Kinberg" <jkinberg@>
> > wrote:
> > >
> > > > I've been looking for a Flash player that
> > > > will load FLV files from a RSS feed and play through them. Any
chance
> > > > that this project will have this functionality?
> > >
> > > Yes, exactly. It currently supports FLV videos from RSS and XSPF
> > > playlists. But the videos must be Flash 8 (or have proper FLV
metadata
> > > injected) until I can figure out a work around for the issue
mentioned
> > > in this thread. Unfortunately, all the docs on Adobe simply
suggest to
> > > either re-encode the videos or inject the metadata...
> > >
> > > I'm having a hard time believing that there is just no other work
> > > around. Come on, Adobe!
> > >
> > > -Josh
> > >
> > >
> > > On 6/1/06, Bill Streeter <bill@> wrote:
> > > > Josh,
> > > >
> > > > I'm sorry I don't have an answer to your problem but I would
like to
> > > > know more about the project. I've been looking for a Flash
player that
> > > > will load FLV files from a RSS feed and play through them. Any
chance
> > > > that this project will have this functionality?
> > > >
> > > > Bill Streeter
> > > > LO-FI SAINT LOUIS
> > > > www.lofistl.com
> > > >
> > > > --- In [email protected], "Joshua Kinberg" <jkinberg@>
> > > > wrote:
> > > > >
> > > > > This is a question for the Flash developers out there...
> > > > >
> > > > > I'm creating a little side-project Flash application that plays
> > Flash
> > > > > Video files (FLV) from a playlist.
> > > > >
> > > > > I've run into a documented bug in FLV versions prior to Flash 8
> > where
> > > > > the duration metadata is incorrect. This screws up the time
progress
> > > > > bar and seeking functionality of my video controller. There must
> > be a
> > > > > trick to get the duration for older versions of FLV since its
> > obvious
> > > > > that other Flash video controllers can do this. Any advice
from the
> > > > > Actionscripters out there?
> > > > >
> > > > > Here's some documentation of the bug (scroll to the bottom):
> > > > > <http://www.jeroenwijering.com/?item=FLV_Video_Compression>
> > > > >
> > > > > and here: <http://www.sti-media.com/blog/archives/000111.html>
> > > > >
> > > > > This documented bug is quite common since most video upload
sites
> > > > > automatically compress with Sorensen (Flash Video 6/7 codec).
> > > > >
> > > > > I've used a tool called FLV Metadata Injector to correct the FLV
> > > > metadata:
> > > > > <http://www.buraks.com/flvmdi/>
> > > > >
> > > > > This does work, but I'd rather be backwards compatible with
Flash
> > > > Video 6/7.
> > > > >
> > > > >
> > > > > -Josh
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>






SPONSORED LINKS
Fireant Individual Typepad
Use Explains


YAHOO! GROUPS LINKS




Reply via email to