[Red5] Sample Flex Demo - FLV player

Dan Rossi spam at electroteque.org
Thu Nov 9 02:13:01 EST 2006


thanks ill go through it more thorough later, goto bed !

John Grden wrote:
> Hey Dan, I read your email, but it's 2am, and I'm tired ;)
>
> I'll answer more thoroughly in the morning, but here are a few tidbits:
>
> 1.  Positioning:  I create the videoPlayer (video object) and put it 
> inside the videoHolder (read the comments in the previewWindow:init() 
> method).   Look at the goFullScreen/goNormalScreen() methods for how I 
> did the positioning.  If you resize the window, it stay's centered.
>
> 2.  the scrub is updated with a setInterval that is set in the init() 
> method of the previewWindow.  I haven't played with doing it 
> differently, but it seems there's gotta be a better way.  But then 
> again, maybe not. I'd rather have a progress bar, and just click where 
> you want to seek to.
>
> 3.  I haven't put in seek ff/bw buttons mainly cause I don't use them 
> ;)  I figure a scrub is more direct, but I could see where people 
> might want them.
>
> 4.  I don't think there's a way to "strip" out the audio portion of an 
> FLV during playback.  Is this even possible on FMS?
>
> 5.  The logger is separate from the LSO class.  It's pretty 
> lightweight if you look at it.  It supports log levels at runtime and 
> recurses your objects as usual.  Also, if you have Xray interface 
> running elsewhere, it'll output to that via localconnection.
>
> to use the Xray Panel, hold down SHIFT+L and the panel will apear.  
> You can resize it by dragging the bottom/right corner, and double 
> clicking the header will do a windowShade effect.
>
> On 11/9/06, *Dan Rossi* <spam at electroteque.org 
> <mailto:spam at electroteque.org>> wrote:
>
>     Hi john great code, very clean, however are you adding in seeking
>     buttons at all, im curious to know how to go about the automatic
>     seeking features.
>
>     do you have mute functionality id like to know if its possible to
>     stop the audio stream etc without having to change the value of
>     the volume slider it doesnt work on vod streams currently.
>
>     the scrub bar code looks clean, how does it get updated though ?
>
>     you may need to add extra calculations here for tracking the
>     position to the length of the hslider maybe ?
>
>     public function updateScrubBar():void
>                 {
>                     try
>                     {
>                         if(!scrubbing) scrubBar.value = ns.time;
>                     }catch(e:Error)
>                     {
>                        
>                     }
>                 }
>
>     i cant see where this is called is this within a timer method ?
>
>     also how do you position the vholder component, i created my own
>     flex component which composes the Video class and kinda
>     "overrides" the same methods required to send the netstream to it
>     then call it in a flex tag like
>
>     <media:VideoContainer/> :)
>
>     im curious to see what these filters do !
>
>     im still trying to work out how to customise a skin of a hslider
>     to make it look like a traingular masked volume slider, the
>     default skin is terrible :)
>
>     some questions about the blitz imports, flex has its own Logging
>     api, is there a reason to use bltiz, it seems it has the same
>     class in different packages for the user preferences, seems simple
>     enough and usable for saving preferences ie the volume position, i
>     like to make my apps quite lite as flex is known to be bulky does
>     it add much more to the size ?
>
>     John Grden wrote:
>>     screenshot:
>>     http://www.rockonFlash.com/red5/demos/FLVPlayer/images/RED5_FLVPlayer.png
>>     <http://www.rockonFlash.com/red5/demos/FLVPlayer/images/RED5_FLVPlayer.png>
>>
>>     On 11/9/06, *John Grden* <neoriley at gmail.com
>>     <mailto:neoriley at gmail.com> > wrote:
>>
>>         I know someone else was finishing up converting the oflaDemo
>>         to Flex/as3, and I was in the middle of creating an FLVPlayer
>>         for local use (progressive/client side only).  I re-routed
>>         some of the guts and converted it to work with Red5 and works
>>         pretty well.  Thanks to Thijs for that little bit of code
>>         with the responder, it's looking really nice.  So, I don't
>>         mean to take an wind out of the other conversion's sales - it
>>         was a simple conversion and thought the source would help.
>>
>>         you can click a button to fill screen, the sound control
>>         works, play/pause/stop and seek.
>>
>>         The source is here:
>>         http://www.rockonflash.com/red5/demos/FLVPlayer/srcview/index.html
>>         <http://www.rockonflash.com/red5/demos/FLVPlayer/srcview/index.html>
>>
>>         you can click on the "download source" to get all the files
>>         to compile and play with.
>>
>>         I'll include it in subversion in the morning after I check
>>         with the other team members on adding it or not.
>>
>>         -- 
>>         [  JPG  ] 
>>
>>
>>
>>
>>     -- 
>>     [  JPG  ]
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     Red5 mailing list
>>     Red5 at osflash.org <mailto:Red5 at osflash.org>
>>     http://osflash.org/mailman/listinfo/red5_osflash.org
>>       
>
>
>     _______________________________________________
>     Red5 mailing list
>     Red5 at osflash.org <mailto:Red5 at osflash.org>
>     http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
>
> -- 
> [  JPG  ]
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20061109/eb53022a/attachment-0001.htm


More information about the Red5 mailing list