• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

FLVPLayback progress bar problem

New Here ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

Hello all,

I use FVLPlayback component to show video in my flash application.
I try to show progress bar which shows progress of loading videos.
So i did:

FLVP.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);


and

function progressHandler(event:VideoProgressEvent):void {

        var bl:Number = Math.round(event.bytesLoaded/1000);

        var bt:Number = Math.round(event.bytesTotal/1000);

        MyProgressBar.setProgress(bl,bt);     

}

I set FLVP.source  = 'path/file.mp4'

Unfortunately when I open a NEW file first time progress bar is empty during loading data.

After that when I try to open this movie again progress bar works "properly". It means it shows progress. It's very quickly probably browser is using cache but still it looks it works.

My question is : what I am doing wrong?
I can't find answer in the internet.

Thanks for your help.
Greetings!

TOPICS
ActionScript

Views

170

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation