Add time to the FLVplayback component

Hi everyone, I'm using the FLVplayback component for a project im doing. I want to add that the time elapsed and time remaining on the controls. I don't really want to create my own controls, as im happy with the flv playback component. The FLV playing in the component files is external and is loaded in via as3

Is there a quick and easy way to do this?

See you soon
Dan

use:

Import fl.video.VideoEvent;
Import fl.video.MetadataEvent;

var fullDuration:String = "";
function metadataReceivedF(e:MetadataEvent):void {}
fullDuration = prettyTime (vidPlayer.metadata.duration);
};
function updateF(e:VideoEvent):void {}
var paTime = vidPlayer.playheadTime;
If (fullDuration! = "") {}
time_txt. Text = prettyTime (vidPlayer.playheadTime) + "/" + fullDuration;
}
};

vidPlayer.addEventListener (MetadataEvent.METADATA_RECEIVED, metadataReceivedF);
vidPlayer.addEventListener (VideoEvent.PLAYHEAD_UPDATE, updateF);

function prettyTime(timeinSeconds:Number):String {}
var seconds: Number = Math.floor (timeinSeconds);
var minutes: Number = Math.floor (seconds/60);
var hours: Number = Math.floor(minutes/60);
   
seconds, % = 60;
% of minutes = 60;
   
var sec: String = seconds.toString ();
var min:String = minutes.toString ();
var hrs:String = hours.toString ();

While (sec.length< 2)="">
s = '0' + seconds;
}
While (min.length< 2)="">
min = "0" + min;
}
While (hrs.length< 2)="">
h = "0" + hrs;
}
return h + ":" + min + ":" + seconds;
}

Tags: Adobe Animate

Similar Questions

  • addition of transition to the FLVPlayback component

    Hi guys,.
    is it possible to add transitions to the FLVPlayback component using the Transition Manager class. all I wan to do is to add the effect to the elements that go into the stage.this start can be easily done from movieClip, but is it possible to do this for the FLVPlatback component.
    Thanks in advance...

    Hey there,
    You can put your FLV inside a movieclip and then use the effect on all.

    B

  • Help with the FLVPlayback component in Air for Android

    Hi all

    I am currently working on a project for an Android tablet in which I need to play a FLV video on a specific image.

    To do a standard PC/Mac packadge I would use normally FLVPlayback component to load the external FLV video, I did a few times before with no real problems.

    But I can't seem to get this working for the Android tablet that I'm working on.

    I post the .apk file and got the .sfw of player and the FLV video file include the value, but I can't seem to load the video playback component.

    Once the application is installed on the tablet of the Player bar appears but no content is never displayed.

    I think it must be something to do with the path of the source I put in place for the components of reading, but once the .apk is installed I don't really know where ends the FLV video or what will be the relative path to it: S

    Everyone manages to get the FLVPlayback component to work on an android Tablet?

    I hope someone can help!

    Thanks in advance.

    I found the solution. If someone asks me. Simply change the video format. do not use flv. Yassin

  • Remove noise in the FLVplayback component?

    How to remove the sound of "specifically" to the FLVplayback component? Given that the sound will not stop playing when I'm on a different page (assuming that if the person does not click on the pause button, and navigate to other pages)... Normally, I would add SoundMixer.stopAll (); for each button in my swf main and loaded but it stop my background music as well...

    The flvplayback component is located in another swf file and the code has been added on the second frame of the movieclip call "scrollGroup.

    //////////////////////////////////////////

    Import fl.video.FLVPlayback;

    import flash.events.Event;

    var flvPlayback:FLVPlayback = new FLVPlayback();

    flvPlayback.fullScreenTakeOver = false;

    flvPlayback.autoPlay = false;

    flvPlayback.source = "video/Listening_to_Community_Voices.f4v";

    flvPlayback.skin = "MinimaFlatCustomColorPlayBackSeekCounterVolMuteFull.swf";

    flvPlayback.x = 31;

    flvPlayback.y = 123.8;

    addChild (flvPlayback);

    /////////////////////////////////////////

    25-11-2011 1-35-04.png

    http://forums.Adobe.com/message/2587415?TSTART=0

  • How to add time to the signature block

    The standard signature block a name of the person and the date located below the blue line.  Is it possible to have the time of signature added to this block is similar to other applications of electronic signature?

    Hello

    It is not possible to add time to the signature block. However, you can place the stamp of participation, which will capture the name of the signer, Email and time signature.

    Kind regards

    Mohamed

  • How to read the videos recorded using the FLVPlayback component?

    Hey guys,.

    I recorded video using fms and I want to play using the FLVPlayback component. I did some research but I can't find something

    useful, I tried this code:

    FLVPlayback.source = "rtmp://localhost/appname/instancename/video";

    This code does not work. Did I do wrong or something? Can someone tell me please on track!

    Thanks in advance!

    Randy

    You may probably want to use something like a text box can be changed in your swf file, where a path is entered could be played by the FLVPlayback component in the swf file.

  • The overview/poster set for the flvplayback component

    I have been customizing the flvplayback component and have encountered a problem. So far, I created a custom look for the flvplayback component, with a play overlay button that loads the FLV file dynamically from flashvars successfully. Now, I'm trying to load in a static image that takes until the video is played. I look around the internet and in the Adobe forums, but have not found what I'm looking for. I thought that maybe the preview in the AS3 flvplayback component would help, but it won't apparently.

    I was thinking myPlayer.source = "image.jpg"; but then how to change what is the source, once someone clicks on the video? I also found fl.video.VideoEvent, but I don't know how I can use this to set the image as a source, so that someone presses the play button, or until the video plays (notice that I use a play button on overlay that appears whenever the movie is paused, so once the video starts to play (, I would not want the static preview image to find once again... until someone clicks the play button of any kind)

    Ideas or meanings is greatly appreciated.

    I joined code how I am dynamically loading the FLV right now.

    The preview of the component FLVPlayback-is only a placeholder for design - which will not get exported in the final swf file unfortunately. The class itself does not posterframe features. What you need to do is to load your posterframe using the class loader as:

    var pfContainer:MovieClip = new MovieClip();
    addChild (pfContainer);
    var pf:Loader = new Loader();
    PF. Load (new URLRequest ('posterframe.jpg');
    pfContainer.addChild (pf);

    Next, you need to define an EventListener to your FLVPlayback instance that removes the Posterframe when the video starts to play:

    myPlayback.addEventListener (VideoEvent.PLAYING_STATE_ENTERED, removePF);
    {removePF(e:Event):void}
    removeChild (pfContainer);
    }

    If you want to have the Posterframe reappear on break, you could hide the pf instead of remove and set up a second EventListener for VideoEvent.PAUSED_STATE_ENTERED.

  • How to make the loop of the FLVPlayback component

    Hello

    use of the FLVPlayback component to complete an animation and I don't see anywhere in the settings, select this option, I'm sure it's an easy fix, I don't know where to look.

    Thank you

    published too soon...

    Mx.video import. *;
    var listenerObject:Object = new Object();
    listenerObject.complete = {function(eventObject:Object):Void}
    my_FLVPlybk.play ();

    };
    my_FLVPlybk.addEventListener ("complete", listenerObject);
    my_FLVPlybk.contentPath = "PS Animation QT.flv";

  • How do I add time to the timestamp string

    Hello

    I have a problem with the addition of time to a timestamp string that is shown on the image below.

    What I need is to add some time for example. 1 hour, but if this change happens between 23:00 and 00:00, I need to change the date.

    Wanted for example results:

    14:53, 22.4.2015. --> 15:53, 22.4.2015.

    23:33, 22.4.2015. --> 00:33, 23.4.2015.

    Help, please

    Use the time to get based on seconds to get the time, use this form to add and subtract the time (to add an hour, simply add 60 * 60 seconds), use the entry timestamp in the Format Date/time function when you want an implementation of the chain.

    Bob Schor

  • Add time at the beginning

    Hello

    I fight with this: I've already done my animation, but now I have to add more time before the key images that I've done. I don't see a way to do it automatically, or a way to select all the images in my keys and move to the right.

    Can you help me please?

    Go to start of the layer.  Highlight of the property in question: it highlights all the keyframes.  Click and drag on one of the key images: they move together.

  • Load FLV into the FLVPlayback component?

    I have a table of videos coming from an XML doc. Get the name of my video in the correct trace statement, I'm don't know how to load the FLV video in the player. I have an FLVPlayback component on the interface named "video". The video, I'll load will be ("' video / ' + videoArray [0]")). What is the right way in AS 3 to load this video?

    You can set the source property of the component:

    myPlayer.source = ' video / ' + videoArray [0];

  • The FLVPlayback component to play MP3 without FMS?

    The FLVPlayback (version 2.5.0.15) component will play an MP3 file without having to be listened to by a Flash Media Server? All I want is to place a player in my Flash who plays an MP3 file that is located in the same directory as the SWF file.

    Here is my code... it's pretty simple:

    Import fl.video.FLVPlayback;


    var myMusic:FLVPlayback = new FLVPlayback();

    myMusic.source = "mySong.mp3";

    myMusic.skin = "SkinOverPlayMute.swf";

    myMusic.skinBackgroundColor = 0xCCCCCC;


    addChild (myMusic);


    you might be able to compel a flvplayback component to manage mp3 files, but there is no advantage and a lot of inconvenience.

  • Trying to modify the FLVPlayback component

    I'm disappointed: I try to modify the ncmanager. (I want to add the parameter when the connection is called method). I edited this file but nothing happens in my application.

    After two hours of headacke, I remove NCManager (I made a copy on my USB key).

    I try to place an FLVPlayback instance on my stage: no problem! I can place, but it does'nt work as I want.

    So I've discovered that I even try to change NCManager, this file is not read.

    I need help to understand what I do when I change those files. Should I have to put it somewhere? I have to compile them and how?

    Thank you

    N. Bauland.

    You can do one more thing just copy the folder integer fl of ' C:\Program Files (x 86) \Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\FLVPlayback "and paste it in the same folder where your .fla file, so instead of picking of" C:\Program Files (x 86) \Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\FLVPlayback ". He chooses to local folder. Just try and let me know.

    -Amit

  • How can I add time to the process of starting to slow down a host to start?

    I have a problem with some boxes where the external storage device takes some time to complete the rotation upward all the readers and the host of complete starting before that the storage device only.  So the vm out there are not accessible unless I restart the host.  In Windows, you can add start menu time to stop the BONE to get through his post.  How do I Linux to accomplish the same thing?

    -Pete

    Edit the file/etc/grub.conf.

    By default, there is this line:

    Timeout = 10

    André

  • Add TIME to the catalog - settings Customize VM

    I was able to understand how to add a paralytic as a model in a catalog, but when I do, it is by default "Pass identical copy." I would firstly like 'Customize VM settings', but when I tried to update the personalization of the VAPP model to do this, I got an error saying "cannot change the value between"Doing an identical copy"and 'Customizing the VM settings' (for CustomizeOnInstantiate).»

    Any ideas on how I can try it?

    Hello

    VappTemplate is read-only. You can change only the name and description.

    http://communities.VMware.com/message/2059209

    You can change this setting when you perform the capture of VAPP as a vapptemplate in the catalog.

    Code Snippet:
    ------------
    // get the vdc
    Vdc vdc = Vdc.getVdcById(vcloudClient, "urn:vcloud:vdc:c1b6e729-0553-402d-a7ed-f462cb4d87c4");
    // capture vapp params
    CaptureVAppParamsType captureVappParams = new CaptureVAppParamsType();
    captureVappParams.setName("VappName");
    captureVappParams.setSource(vapp.getReference());
    // set the customization settings to true
    CustomizationSectionType customizationSectionType = new CustomizationSectionType();
    customizationSectionType.setCustomizeOnInstantiate(true);
    customizationSectionType.setInfo(new MsgType());
    // add the customization settings to the capture vapp params.
    captureVappParams.getSection().add(new com.vmware.vcloud.api.rest.schema.ObjectFactory().createCustomizationSection(customizationSectionType));
    
    // perform the capture vapp operation
    VappTemplate vappTemplate = vdc.captureVapp(captureVappParams);
    
    XML request/response:
    ---------------------
    
        
        
            
            true
        
    
    
    
        
        
            
                
                
                
                
                1
            
        
        
            
        
        
        
            Lease settings section
            
            2592000
            2012-09-30T15:33:02.345-07:00
        
        
            VApp template customization section
            true
        
    
    

    Kind regards

    Rajesh Kamal.

Maybe you are looking for