[Red5] New Flex 2 Video Player

John Kirby jjkirby at comcast.net
Sun Nov 11 19:18:25 PST 2007


Lenny -

Cool... have you thought to changing the aspect ratio on the fly so  
different video formats can be played in optimum format?

I did some thing like this for my ski school class (In HD!):

<http://infinitymedialabs.com/copper/choppers/2007>

Click on the videos (there is a built in 10 second buffer).   The  
Final Cut pro remastered to flv format are pretty cool.

.j

On Nov 7, 2007, at 1:08 PM, Lenny Sorey wrote:

> A couple of weeks ago I release a Flex 2 Video Streaming Player or  
> what I thought was a video streaming
> player.
>
> Jake Hilton and Dan Rossi "From Down Under" Questioned me as to  
> whether this player was
> Progressive Video or True Net Streaming.
>
> I'd like to thanks Jake and Dan for pointing out the Errs of my  
> ways. : ).
>
> I thought I was right and had found the right combination for  
> VideoDisplay Components and the Video Class.
>
> Seems I was wrong, the first real time I check to see if the meta  
> files were being created. In addition, I could not
> get the videos metaData from the VideoDisplay components very well  
> either.
>
> I went back and gutted the app and rewrote it to a true net  
> streaming video player and can now get all the
> videos metaData (if it is there) that I need.
>
> You can see both (progressive and streaming) video players at the  
> following url:
>
> http://red5.fatdot.com
>
> The video player you will see is available in 3 different formats.  
> They are as follows:
>
> 1. Reads an XML file and plays videos.
> 2. The progressive download and play you can see at the above url.  
> (potential security problems with this option)
> 3. The true net streaming option which can see at the above url as  
> well.
>
> The last two options have a MySQL database where the video  
> descriptions, flv reference and image locations are stored.
>
> I am going to make the XML version and the progressive download  
> options available now if anyone wants
> both the Java and Flex sources for either player.
>
> I will make the streaming server video player available a little  
> after I have finish with some final items I want to
> add to it.
>
> Here a breakdown on the XML and Progressive download Players.
>
> XML:
>
> Pros:
> XML loads quickly
> Plays nicely and your video references, descriptions and image  
> references reside in the XML file.
> Works with nc.connect( "rtmp://red5.fatdot.com/oflaDemo"); right out  
> of the box. : )
> Cons:
>
> Can't play videos from the streams folder. You will have to create a  
> folder beneath the demos folder to place your videos.
> One nice thing about this option is you can created as many folder  
> to drill down under the demos folder to try to protect your
> videos. I created a playlist named _24_playlist4.xml and place it in  
> the demos/streams/offbeat folder to try to make it a little more
> secure.
>
> Progressive Download:
>
> Pros:
>
> It works and can read from the streams folder if the security is  
> removed from the streams folder in red5's web.xml folder.
> to read from the streams folder I had to reference the videos like "  
> myVideolrs = " http://red5.fatdot.com/streams/"+thevideo;
> when clicking on a video to play.
> Many nice components in VideoDisplay that will pretty the video  
> player. One neat feature is the stateHandler function for VideoEvents.
> Cons:
>
> It does not stream from the streams folder. It will not create the  
> videos meta file. So, don't count on this.
> One of the biggest drawbacks is the timer and metaData reading. even  
> though I could read the video's metaData
> info, I had a hard time of getting the timer to read the videos  
> duration info. Maybe someone can have better luck with
> than me. : )
> Platform is as follows:
>
> Windows 2000
> Java 1.6_02
> RED5  - Trunk 2162
> Tomcat 6.0.14
> Mod_jk connector
> MySQL 5.0.14
> Apache 2.2.4
> PHP 5+
>
>
> Any feedback on the Streaming Video Player would be appreciated. Be  
> glad to answer any questions.
>
> Regard,
>
> Lenny
>
> On 10/23/07, Lenny Sorey <lrsorey at gmail.com> wrote:
> Nope,
>
> It's Streaming.
>
> This is a combination of Netstream and VideoDisplay events.
>
> Lenny
>
>
> On 10/23/07, Jake Hilton <red5 at jakehilton.com > wrote:
> Looks like it's all progressive video right?
>
> Looks like a great player though.
>
> Jake
>
> On 10/23/07, Lenny Sorey <lrsorey at gmail.com> wrote:
> > I completed for now a new Flex 2 & Flex 3 Video Player.
> >
> > Please give it a try and let me know what you think.
> >
> > Just realized that I didn't set a default item for the playlist.
> >
> > Just click on any grid item to view the Title, Producer and  
> Description as
> > well as the image for
> > each respective video.
> >
> > To enlarge the video screen please click on the icon next to the  
> clock in
> > the the upper right hand corner.
> >
> > So far this player is loading the video playlist from a MySql table.
> >
> > I am still working on this project. I am still learning about  
> PlayheadTime
> > as you can see when you click on Spider Man
> > as I am not sure the video length is no encoded into the videos  
> metadata.
> >
> > Here's the the url:
> >
> > http://red5.fatdot.com/FatDotMediaPlayer.html
> >
> > The RED5 platform:
> >
> > Windows 2000
> > Java 1.6_02
> > Tomcat 6.0.14 Mod_jk
> > Apache 2.2.4
> > MySQL 5.0.14
> > RED5 Trunk 2412
> >
> >
> > Regards,
> >
> > Lenny
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org


Whether you think that you can, or that you can't, you are usually  
right.
- Henry Ford




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071111/b0fee7aa/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20071111/b0fee7aa/attachment.bin 


More information about the Red5 mailing list