(5869) FLVPlayer/::netStatusHandler()
netStatus
NetConnection.Connect.Success
(5874) FLVPlayer/::netStatusHandler()
connected
true
(5906) FLVPlayer/getMediaList()
items
size: 8446642
name: on2_flash8_w_audio.flv
lastModified: 08/11/06 21:10:35
(5907) FLVPlayer/getMediaList()
items
size: 6200492
name: Spiderman3_trailer_300.flv
lastModified: 08/11/06 21:15:53
On 11/9/06, John Grden <[EMAIL PROTECTED]> wrote:
PS> the reason I don't hook up to the logging of Flex is that I just didn't have the time and it seemed kinda convoluted. Since they have a debugger, and there's no Output panel like there is in Flash IDE, I don't really see a need to play ball with theirs yet. Xray will be working with Flex soon (output already works), and that's my debugger of choice ;)
So, that's been my reasoning. Of course, if there's some compelling reason to use their trace or hook up to it, then I'm sure I'll do the work. but right now, mine does more and has runtime log levels with a cool window that's easily managed. Also, mine gives you class package/method making the call for the traces - i'm not sure the Flex logging classes do that, but I could be wrong.--On 11/9/06, John Grden < [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
On 11/9/06, John Grden <[EMAIL PROTECTED] > 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
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
[email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
[ JPG ]
[ JPG ]
--
[ JPG ]
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
