VideoDisplay is just wrapper around VideoPlayer. I think, Flex 2 is great because you get source code. So you can extend things rather than using workarounds or hacks...Thanks to Adobe for making SDK free and this indeed has advantage over last version (Flex
1.5).I am not promising but If I
Greg - I'll upload the code sometime today or tonight.
Impudent1 - I'll create a new post sometime today or tonight talking
about what I did.
I'm starting a new website blog (www.flexdojo.com). Since it's a
site about FLEX I want to be 100% FLEX based. I'll see if I can
get more detailed up
So, does the following summary sound right?
1) I can't create a progress bar that shows buffering progress as long
as I use the mx:videoDisplay component (I'm hoping my assumption on
this point is wrong).
2) I have to use the netStream objects if I want to create a buffering
progress bar,
Hi Chris,In VideoDisplay, you can subscribe to playheadUpdate event and use playheadTime, which is similar to NetStream.time.You can subscribe to stateChange event and watch BUFFERING in event handler, if you want to show BUFFERING status to user...
-abdulOn 8/30/06, Chris Simeone [EMAIL
Hi,With VideoDisplay, you don't need to use onEnterFrame or any external Timer instance. Just subscribe to VideoDisplay's playheadUpdate event and do progress bar logic in event handler.-abdul
On 8/30/06, Chris Simeone [EMAIL PROTECTED] wrote:
Ok, Below is my
Hi Abdul
Your last two responses were helpful, but I don't think they solve my
problem.
As far as I can tell, to show buffering progress of streaming video as
a percentage reflected in a progress bar I need to do this...
var loadpct:Number = ns.time / ns.bufferLength * 100;
Well, my hack worked.
I created a new package in my project. Then I copied the Flex video
classes into the package folders and hacked those (about 50 lines of
code in 10 files - less not counting the package name changes). Then I
created a new video event - BUFFERINGPCT. The VideoEvent object now
Thanks for sharing, I am currently trying to get my head around
extending videodisplay as well, but for my needs I need to pull the
metadata as well as be able to add/remove cuepoints on the fly.
I was was going about it by learning how to extend an existing
component. You mentioned copying
Wow Chris. You are way out ahead of me :-)
When Abdul mentioned in the other thread last week needing to hack the
code properly I figured it might be a bridge too far for me.
Any chance of your posting your solution over at http://www.onflex.org/code/
Regarding getting Adobe to add this type
Abdul is correct, you need to get the netstream time, use the
following code for your enterframe function:
private function onEnterFrame(event:Event):void
{
if(stream == null) return;
var loadpct:Number = stream.bytesLoaded /
Hey Greg and Abdul,
That info is exactly what I needed! I'll make the changes and let you
know how it worked out.
Thank you for your responses.
Take Care,
Chris
--- In flexcoders@yahoogroups.com, Chris Simeone [EMAIL PROTECTED] wrote:
Hi All,
I've been trying to create a Buffering
Awesome!!! Worked perfectly. Thank You.
With all this in mind, is there a way to pull this of using the
mx:videoDisplay component?
I created my app using that component but I could not figure out how
to access the stream. I figured I would do a rewrite using the
netStream object if necessary,
Ok, Below is my updated onEnterFrame() method that updates a
progressBar component. It works great. Thanks again gang!
Now I'm going to try and get this working using the mx:videoDisplay
component. I'm not sure if I can get to its netStream object, so any
ideas/recommendations would be helpful
Chris,
Regarding your post:
Now I'm going to try and get this working using the
mx:videoDisplay component. I'm not sure if I can get to its
netStream object, so any ideas/recommendations would be helpful and
appreciated.
Last week Abdul posted a reply on this list on the thread How to
Hmmm Bummer...
Before I abandon my idea I want to sum up this thread...
I can't create a progress bar that shows buffering progress as long as
I use the videoDisplay component.
I have to use the netStream objects if I want to create a buffering
progress bar, because that's the only way I
15 matches
Mail list logo