You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Tintin <19...@googlemail.com> on 2013/11/07 17:57:02 UTC

VideoDisplay Performance When Seeking

Hello

I am creating a simple application which has a Spark VideoDisplay component
above a HSlider. The HSlider value 'drives' the position of the VideoDisplay
allowing the user to scrub the video content. The code in the mxml file is
as follows:



The VideoDisplay source is a local flv file which has a frame rate of 1fps
and a keyframe on every frame.

The movie.bytesLoaded are compared to the total size and only when the
complete movie has been downloaded does the HSlider become enabled.

My mxml 'view' has a 'presenter' actionScript class which, amongst other
things, provides the DebugText value displayed in the Label. This includes
the State of the VideoDisplay object.

When I view the swf file in its default web page everything works, but the
performance is poor. The flv video stutters and I notice that as I drag the
HSlider button the VideoDisplay changes its state to 'Buffering' while the
video picture is visually frozen, then the picture updates (with a jump) to
wherever the HSlider button was.

If the movie has completely downloaded does it still have to be buffering?
Can anyone suggest how I could improve the performance and therefore user
experience please.

Thank you.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: VideoDisplay Performance When Seeking

Posted by Tintin <19...@googlemail.com>.
Hello Heinrich

That's an interesting idea. I originally developed this 'slider' in Flash
Professional using the netStream object but there was an update to the Flash
Player web plug in which broke the seek method causing it to only change the
video image once the mouse button had been released, no matter how far it
had been dragged to scrub the video.

I'll try it again in Flex but I was hoping that the Spark VideoDisplay
component would solve my problem, which it nearly does.

After more work yesterday I am now considering managing the HSlider's change
event in my presenter code so that I only issue a seek() if the
HSlider.change value is different. I wonder if many seek commands are being
issued overwhelming the VideoDisplay component.

Regards


Chris



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3662.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: VideoDisplay Performance When Seeking

Posted by Heinrich Ruoff <he...@gmail.com>.
Hi Tintin,

I think the video is always buffering when you manually change the playhead
position.
Shouldn't be a performance problem.
Is the video paused while you drag the HSlider?
Maybe use directly Netstream and Video base class instead Spark
VideoDisplay for performance comparison?

grz
Heinrich


On Fri, Nov 8, 2013 at 10:06 AM, Tintin <19...@googlemail.com>wrote:

> Hello Scott
>
> It's a good thought but I don't want to embed the movies (if I could).
>
> I am trying to build a generic swf which can be passed the videoDisplay
> source as a parameter from the html page. This way the same swf can display
> any movie I like, I simply provide a different reference in the parameter.
>
> Please keep thinking though as this is a very frustrating performance
> problem.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3633.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: VideoDisplay Performance When Seeking

Posted by Tintin <19...@googlemail.com>.
Hello Scott

It's a good thought but I don't want to embed the movies (if I could).

I am trying to build a generic swf which can be passed the videoDisplay
source as a parameter from the html page. This way the same swf can display
any movie I like, I simply provide a different reference in the parameter.

Please keep thinking though as this is a very frustrating performance
problem.

Thanks



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3633.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: VideoDisplay Performance When Seeking

Posted by Tintin <19...@googlemail.com>.
Hello Raghav

Thank you for taking the trouble to send some examples. I look forward to
seeing them.

If anyone else can try to make a VideoDisplay scrub a movie smoothly using a
HSlider I would be very interested to hear of their results.

Thank you.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3685.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

VideoDisplay Performance When Seeking

Posted by raghav kulshrestha <ra...@firmwisegroup.com>.
Hello Tintin
		 I will attech  viedoDisplay  example with buffering and
another example of first load video and play this
Thank
Raghav Kulshrestha

-----Original Message-----
From: Tintin [mailto:1955.mille.miglia@googlemail.com] 
Sent: Monday, 11 November 2013 2:33 PM
To: users@flex.apache.org
Subject: Re: VideoDisplay Performance When Seeking

Hello Raghav

An intriguing suggestion but I don't quite understand the method. Would you
be kind enough to clarify your answer please so that I can try it out here.

Thank you.



--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When
-Seeking-tp3594p3669.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.




Re: VideoDisplay Performance When Seeking

Posted by Tintin <19...@googlemail.com>.
Hello Raghav

An intriguing suggestion but I don't quite understand the method. Would you
be kind enough to clarify your answer please so that I can try it out here.

Thank you.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3669.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

VideoDisplay Performance When Seeking

Posted by raghav kulshrestha <ra...@firmwisegroup.com>.
Hello Tintin,
			U can use buffering state use in videodisplay then
play, it is like live video play they some data buffer then play,if u see
them if u not play the video they default buffer complete then play.
Then Performance is very fast.
Thanks
Raghav Kulshrestha
 

-----Original Message-----
From: Tintin [mailto:1955.mille.miglia@googlemail.com] 
Sent: Friday, 8 November 2013 2:33 PM
To: users@flex.apache.org
Subject: Re: VideoDisplay Performance When Seeking

Thank you Raghav for your reply

I do wait for all of the video to download before enabling the slider, so
the browser should have cached it all. I don't understand why it continues
to change its state to 'buffering' when the HSlider button is dragged.

I understand that it's completely different but if I open my movies in
Quicktime and drag the scrub bar it scrubs instantly and perfectly. I want
the same experience for my users through the Flash Plug-in on their
browsers.

Any suggestions would be very welcome.



--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When
-Seeking-tp3594p3632.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: VideoDisplay Performance When Seeking

Posted by Tintin <19...@googlemail.com>.
Thank you Raghav for your reply

I do wait for all of the video to download before enabling the slider, so
the browser should have cached it all. I don't understand why it continues
to change its state to 'buffering' when the HSlider button is dragged.

I understand that it's completely different but if I open my movies in
Quicktime and drag the scrub bar it scrubs instantly and perfectly. I want
the same experience for my users through the Flash Plug-in on their
browsers.

Any suggestions would be very welcome.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/VideoDisplay-Performance-When-Seeking-tp3594p3632.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

VideoDisplay Performance When Seeking

Posted by raghav kulshrestha <ra...@firmwisegroup.com>.
Yes it is possible.

-----Original Message-----
From: Scott Matheson [mailto:smatheson@intralinks.com] 
Sent: Friday, 8 November 2013 1:13 PM
To: <us...@flex.apache.org>
Subject: Re: VideoDisplay Performance When Seeking

Is It possible to embed small videos ?

Sent from my iPhone

> On 8 Nov 2013, at 05:09, "raghav kulshrestha"
<ra...@firmwisegroup.com> wrote:
>
> Hi Tintin,
>          I think this performance of videodisplay of spark is better if i
> first buffering whole video then play this then better performance.
>
>
> Thanks
> Raghav Kulshrestha
>
>
>

________________________________

Disclaimer: This electronic mail and any attachments are confidential and
may be privileged. If you are not the intended recipient, please notify the
sender immediately by replying to this email, and destroy all copies of this
email and any attachments. Thank you.




Re: VideoDisplay Performance When Seeking

Posted by Scott Matheson <sm...@intralinks.com>.
Is It possible to embed small videos ?

Sent from my iPhone

> On 8 Nov 2013, at 05:09, "raghav kulshrestha" <ra...@firmwisegroup.com> wrote:
>
> Hi Tintin,
>          I think this performance of videodisplay of spark is better if i
> first buffering whole video then play this then better performance.
>
>
> Thanks
> Raghav Kulshrestha
>
>
>

________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

VideoDisplay Performance When Seeking

Posted by raghav kulshrestha <ra...@firmwisegroup.com>.
Hi Tintin,
          I think this performance of videodisplay of spark is better if i
first buffering whole video then play this then better performance.


Thanks
Raghav Kulshrestha