Flash video: display elapsed time

I am using the FLVPlayback component and one of the video
templates from this site that uses screens. I want to display
elapsed time/total time. I can't find a script to do that although
i do find some if you don't use the FLVPlayback component.
any help would be much appreciated.

Hey Pat, I'm using something like this. You need to place the
time() function on frame 1 and place the bottom code in an event or
on a frame loop (while the video plays)
// assumes the FLV Playback component with an instance name -
VideoPlayer
// time fiunction converts seconds to actual time
function time($seconds) {
if ($seconds !="Z") {
var $time:Number = $seconds;
var $min:Number = Math.floor($time/60);
//var $hrs:Number = Math.floor($min % 60);
var $sec:Number = $time % 60;
if ($sec <10 ) {
var $sec:String = "0"+$sec;
if ($min < 1 ) {
var $min:String = "";
var $timing:String = $min + ":" + $sec;
} else {
var $timing:String="";
return $timing;
// displays in a textfield- VidTime
VidTime.text = time(Math.floor(VideoPlayer.playheadTime))+"
of "+time(Math.floor(VideoPlayer.totalTime));

Similar Messages

  • How to display elapsed time on TPC-2006 (Pocket PC 2003) as mm:ss?

    The small attached PDA vi is a simple "egg timer" that measures elapsed time in minutes and seconds.  I've tried every formatting trick I can think of, but cannot get my TPC-2006 to display the elapsed time as mm:ss.  It always displays single digit minutes and seconds using one digit instead of 2.  By this I mean that an elapsed time of 1 minute and 6 seconds will display as 1:6.  My customer expects that elapsed time to display as 01:06.
    I tried attaching a %t constant to the "format string" input of the "format into string" sub-vi, but the deployed display showed %t instead of elapsed time.
    The second question is, how do I get rid of the up/down icons in the strip display box?  They do not show in the virtual front panel, but always show up in the deployed application.
    Jeff
    Climbing the Labview learning curve!
    Sanarus Medical
    Pleasanton, CA
    Attachments:
    MinSecTimer.vi ‏12 KB

    Hi Jeff,
    I solved your first problem. The format string you were looking for to wire into the Format Into String function is %02.0f. Honestly, I can never remember what the syntax is for format strings, but I've devised a method anyone can use to make it really easy. First of all, place a numeric constant on the block diagram. Right click the constant and select Format and Precision. From that dialog, make the changes you like. You can actually see the changes propogate to the constant in real-time if you can see the block diagram constant. In your case, the change you wanted to make was Zero Padding - 2 spaces - pad with zeros on the left. After you've configured your number to look like you want, click on the Advanced Editing Mode radio button at the bottom. This is where you can manually enter in Format Strings for numeric constants or controls. The trick is, whatever changes you currently have made in the default editing mode will show up as a format string that you can copy and paste and use as you like. Hope this helps!
    Message Edited by Jarrod S. on 05-25-2006 11:02 AM
    Jarrod S.
    National Instruments
    Attachments:
    double_digit_MinSecTimer-2.vi ‏12 KB
    Default_edit.JPG ‏41 KB
    Advanced_edit.JPG ‏43 KB

  • How to display the elapsed time of a video (event video) in Captivate 6

    I have a Captivate 6 project which includes two separate videos and I am wondering how I can display an elapsed time for the videos - preferably one that stops if the individual stops the video.

    Hello and welcome to the forum,
    Are you talking about an inserted video, or about the Captivate file itself? I'm asking this because a lot of users refer to a published CP-file as a video.
    'Elapsed time': is this the real time spent by the user, or the time as you can see in the TOC (developer's time)? I blogged once about the difference.
    Lilybiri

  • Flash video will not display properly

    I've followed all the instructions on the Mozilla website, but Flash videos displayed within Firefox still appear pixelated and purple in color. The same site in IE looks fine. I have the latest version of Flash installed.
    == URL of affected sites ==
    http://youtube.com

    Flash version 10.1.d51 (shown in your plug-ins as "Shockwave Flash 10.1 d51) is a <u>'''pre-release'''</u> version (not fully tested; should be used only by developers and qualified testers). See: http://labs.adobe.com/technologies/flashplayer10/ ~~red:and~~ http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf
    Maybe you should report the problem here: http://bugs.adobe.com/flashplayer/
    You <u>'''may'''</u> be using a publicly released version in IE (the latest as of today is version 10.0.45.2). Open IE, click Tools, click Manage Add-ons, choose "Show" and change to All Add-ons, scroll down and look for Shockwave Flash Object, look for version column.
    <u>'''NOTE:'''</u> Firefox and most other browsers use a plug-in version of Adobe Flash (and other software) while IE uses an ActiveX version of Flash which Firefox does not use. See: [[ActiveX]] . When updating some products, you need to update for Firefox and IE <u>'''separately'''</u>.
    If you want to remove the pre-release version of Flash for Firefox and install the latest released version, the instructions are below.
    <u>'''Remove pre-release version'''</u>
    Try to remove the <u>'''pre-release'''</u> version of Flash you have installed for Firefox. Close Firefox, then, using Start > Settings > Control Panel > Add or Remove Programs, look for "Adobe Flash 10 Plugin", choose Remove. After the removal is complete, it is a good idea to reboot your computer to assure that the removal is complete.
    <u>'''Install/Update Adobe Flash Player for Firefox'''</u>: your ver. 10.1.d51 (~~red:pre-release~~); current ver. 10.0 r45
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.

  • Displaying Duration Time

    Hello, :)
    Where is the option to display the video's duration time?
    Haven't found it yet...
    I am using Captivate 2 and would like the user to see how
    long the video goes.
    Thanks much!
    Stefan

    Hi Guys! Yes, I'm sure you can do it in Flash ...
    You can display a
    clock displaying
    timeof day. There is all kinds of information about this at
    Edmund Mullen's site, located at:
    http://ed.mullen.home.comcast.net/fclock.html
    If you want a SWF you can insert into a Captivate movie that
    displays elapsed time, I have a diferent suggestion. First,
    understand that elapsed time (ET) can be a tricky bugger, becuase
    it is probably not "straight-ahead" elapsed time. If your Captivate
    movies have any interactivity, you may or may not want those
    "pauses" counted in elapsed time metering. You need something
    special, and as Rick said, that animal don't live here ...
    Contact Paul Dehurst (fellow community expert) and ask if
    Paul will build you something like this. He may be too busy, or
    just not interested in extra work right now, but if he does it for
    you, he'll do a good job. Expect to pay him a negotiated fee - it
    will be reasonable. Paul can be reached right here, or at his
    web-site at:
    http://www.raisingaimee.co.uk/
    Click the link to: "
    Contact Paul:"
    Second idea, if Paul can't be convinced to help you out ...
    call RentaCoder. You can reach them at:
    http://www.rentacoder.com/RentACoder/default.asp
    Seriously, these folks might be the most underappreciated
    people on the net. In just a few minutes at their site, you can
    find a programmer in almost any software language - often close to
    your physical location. No, I haven't personally used them, but a
    company I contracted with recently had a need for a special Flash
    tool, and contacted a Flash coder through "rentacoder" - and were
    very pleased. Good luck!

  • Starting Video based on Time in Browser

    Hi all,
    I am working on a project where I need to start playing my
    Flash video when the time in the browser says so-and-so
    hours,minutes,seconds,milliseconds. I have written a servlet and
    deployed it to a server so that the browser displays the time in
    this format(hhmmssSSSS)
    http://visclass.ucsd.edu:8080/KedarDate/DisplayDate
    I want some help(I'm a novice) to get started on making the
    Flash(ActionScript 3.0) read the numbers in the browser and start
    at a particular time. I know I have to convert the numbers to a
    long and read them in that way, but I don't know how to start:(
    If you can kindly give me a leg-up, I'd appreciate it very
    much
    thank you all,
    Kedar

    Hi,
    Refer the following document for more information in Time Distribution,
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0e1096a-e058-2c10-06b7-c66f9a82a9c8]
    Regards,
    Durgesh.

  • Best export for flash video

    I have completed an edit of a 7 minute teaser for a feature film and need to export it to be displayed online in a flash player. The footage is HD 1080i, 29.97fps and edited in the Animation coded. My experience with best exports for flash conversion is very limited so please bare with with.
    1) Is it possible to export directly from FCP to a flash file? If yes, would that be a good idea, or should I use third party softwares for better results?
    2) Which third party softwares are recommended for flash conversion? And what export compression should I use in FCP for best flash conversion results?
    3) Any other tips and tricks to get the best quality for flash video display?
    Any help would obviously be greatly appreciated. Thank you.

    When I have quality HD video that I want to export for flash, I compress it with h.264 codec. Then, with the new version of Flash, you can swap out the .mp4 extension for .f4v and your good to go in Flash. Quality looks pretty good at a fraction of the file size.

  • Adding elapsed time display to iMovie video

    Are there any plugins or procedures to use to add the display of an elapsed time clock to my iMovie video? I am trying to create a movie that displays an elapsed time clock on the screen as part of the movie, so that the viewer can go to selected time spots that are referenced in an accompanying written document.

    maybe this one from geethree.com?
    http://www.geethree.com/slick/galleries/s6demopages/s6stopwatch.html

  • Problem with Flash videos. They are only display in "Private Browsing" mode, in Safari 5.1.7

    The symptoms is: The flash videos are only display with a full red bar and nothing happen, no video no sound nothing. The Flash player was upgrade with 11.2.202.235. before safari 5.1.7. I have an iMac with SL, and a Macbook with SL too. However after I upgraded safari 5.1.7 the flash videos are not display correctly, (only videos). The same happen in both computers.
    I need to tell you that I follow all the possible recommendations that I founded in internent. I uninstall flash pug-in many times. I restore both. I switch many buttons and options like "reset safari", "empty cahe", "block pop-up windows", "enable java-script", "enable java". I turn off and on the firewall. I switch all the options in the flash player plug in preferences. And nothing. I turn on and off the plug ins. In fact I tried all the possibilities in the preferences menus from the programs.
    In one occasion I had a glimpse of functionality for only one hour without problems after I reinstall safari from the Apple website, but only worked until I turned off the computer. The next day was the same problem.
    After I fought with safari 5.1.7 and the plug-in flash player 11.2.202.235. Now I noticed something wired, only when I switch the "Private browsing" option in safari is when the videos are displayed correctly.
    The same videos work perfectly in Firefox.
    Some Suggestions?

    Thank you everybody, the problem was corrected in a unexpected way, I decided no to pay attention to the problem after a week fighting with that. I was navigating in a private browsing for two days. I turned the private browsing off again the next Monday, after a week I noticed that all the videos were display correctly, I do not have the problem again. That was wired because at the same time in the laptop everything is ok too. I have my extensions ON, Block Pop-up windows, In Flash payer all the options in ask....something. Only the option Disable Java script in not activated, only when I activate that option all videos are not display.
    I think maybe I updated the computer and maybe something happened in the middle. I always update my imac and my macbook at the same time. There is a Flash removal security update in may 14. Maybe that fixed the problem.
    Thanks to everybody, everything is ok now however I wanted to know what was the problem.

  • How to display elapsed/current time of a song in Actionscript.

    Hi I have a question on how I can make my code display a total time for a song from a media player I created with Actionscript 3.0, using XML to load the song track.
    This is my current function which I have done and I am unsure on what the problem is that is not allowing the elapsed time to display in a textfield on my stage.
    stage.addEventListener(Event.ENTER_FRAME, timeElapsed);
    function timeElapsed(e:Event):void
                        var minutesCurr:Number = Math.floor((my_channel.position /1000) /60);
                        var secondsCurr = Math.floor((my_channel.position /1000) % 60);
            if (secondsCurr < 10)
                secondsCurr = "0" + secondsCurr;
            var minutesTot:Number = Math.floor((my_sound.length /1000) /60);
            var secondsTot = Math.floor((my_sound.length /1000) % 60);
            if (secondsTot < 10)
                secondsTot = "0" + secondsTot;
            completeText_txt.text = minutesCurr + ":" + secondsCurr + "/" + minutesTot + ":" + secondsTot;
    I tried adding to the stage and I am getting a null object reference.
    Thanks Casey

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • Firefox for windows won't display absolute positioned divs over flash video

    I have a website that has a brightcove video player. About a month or so ago, I was able to float divs over the video player so that they would display on top of the video player, using absolute positioning.
    You can see the player here:
    lifeminute.tv/evv/8+9+10+11+12+34/widget300s
    In Firefox (mac), Chrome (windows), Internet explorer (windows) and Safari (mac) it all still displays properly. In Firefox (windows) the video player ignores the Z-index I assign it, and always places the divs underneath it, UNLESS I give the floating div a solid background color.
    When I assign the following styles to the div containing the overlay, I can see the text properly, but of course the video is obscured.
    background-color: #FFFFFF;
    height: 158px;
    position: absolute;
    top: 4px;
    width: 275px;
    If I remove the background-color element the whole overlay pops to the back of the stack behind the video again.
    Is this a FF windows bug or am I just missing something obvious?

    At times you have to add wmode="transparent" attribute to the flash video embed code.

  • How can I display the elapsed time of the course using Advanced Actions in Captivate?

    I have a Captivate course which is approximately 35 minutes in length. On each slide I would like to display to the user, the current elapsed time.
    EXAMPLE:
    25/35 minutes complete
    The 35 would remain static, so I have been working with the elapsed time system variable in CP: elapsed:$$cpInfoElapsedTimeMS$$
    I can't seem to get the variable to properly display the elapsed time in minutes, rather than miliseconds. Attached is a screen shot of my advanced action.
    Can anyone provide guidence regarding how I should structure this differntly?

    I talked about that Timer widget in that blog post and pointed to another one:
    http://blog.lilybiri.com/timer-widget-to-stress-your-learners
    If you are on CP7, you'll have this widget also as an interaction, which means it is compatible with HTML5 output. Amd there is also an hourglass interaction, with similar functionality but... did not blog about that one
    PS: Check Gallery\Widgets to find all widgets. Default path is set to Interactions

  • Display of Chinese Characters in Flash Video

    '''Help needed to resolve issue with display of chinese fonts in Firefox.'''
    I used to be able to run an html based chinese language learning program (with embedded Flash) in Firefox on my Galaxy Nexus mobile...that is until I installed the latest version of Firefox.
    These are the instructions that came with the program to install/run it:
    This site is best viewed with Mozilla FireFox 3.x+ (and above) with either Adobe Flash Player 8+ (and above) at a minimum screen resolution of 1024 x 768. We also recommend that you enable both JavaScript and Cookies in your chosen browser's settings. Obviously things have moved on since then and the version of Firefox I installed around May 2013 would have been around 22.0
    While the above appear to be targeted at computer/tablet platforms the program ran successfully on my mobile and the embedded flash video worked well. The video clips and accompanying audio for each lesson were also accompanied by text that updated as each speaker began conversing. This text could be displayed (by selection) in English, Pinyin or Chinese characters.
    With an upgrade to the latest version of Firefox the Chinese characters now no longer display although 'English' fonts do...why? Is this a character encoding issue? Can this be set? What has changed between version 22 or thereabouts that I installed in May 2013 and the current version. Someone must surely know ??? If this cant be fixed, how can I re-install an older version of Firefox on my mobile. As an aside
    I was able to download firefox-22.0.bundle, some bundle.parts and .source files along with Firefox Setup 3.6.28.exe but cant install any of these. HELP needed please.

    Hello,
    Can you please confirm that this is the summary of the issue you are facing
    #On a site using Flash, and using Firefox 22.0, you were able to view English, Pinyin, Chinese characters on the flash video
    #You upgraded Firefox to the latest version from the play store, and also have the latest Flash version, but the same Flash video doesn't display the Chinese characters now
    #You are looking for the older version of Firefox for Android so that you can confirm that this issue has something to do with the latest version of Firefox
    For the last point, you can download the Android APKs of the older versions from the following links
    #[https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/22.0/android/en-US/ Android APK for Firefox 22.0 in English]
    #[https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/22.0/android-armv6/en-US/ Android APK for Firefox 22.0 in English for Arm V6]
    Please do note that you will need to enable the 'Install from unknown sources' option on the Android device to be able to install this APK. Suggest that you disable the setting after you finish your testing.
    Please confirm the details above and we can help you resolve the issue.
    Thank you

  • How to display the time length of video (current time/ total time) ?

    Hi,everyone. I would like to ask how to display the time length of the video which show only in system example: it show the current time and total time? using AS 3.0.
    It there any information or solution to solve it? .
    I appreciate it any of you able to answer it. ^^
    Thank you.

    Hi,
    Actually I have this requirement for MAC OS 10.5. With the code you provided, I got the output as "6289375". When I changed the URL to point to my file (file:///Users/VPKVL/Desktop/MyRecord/tempAudio.wav), I am getting the below mentioned Exception:
    Exception in thread "main" javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
         at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:561)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:165)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:256)
         at TestWavLength.main(TestWavLength.java:13)The "tempAudio.wav" file is created by using java sound API. I am using the SSB USB Headphone Set to record the audio with the following settings for AudioFormat object:
    AudioFormat audioFormat = new AudioFormat(
              AudioFormat.Encoding.PCM_SIGNED, // the audio encoding
                                                            // technique
              48000.0F,// sampleRate the number of samples per second
              16, // sampleSizeInBits the number of bits in each sample
              2, // channels the number of channels (1 for mono, 2 for
                            // stereo, and so on)
              4, // frameSize the number of bytes in each frame
              48000.0F,// frameRate the number of frames per second
              false); // bigEndian indicates whether the data for a single
                            // sample is stored in big-endian byte order
                            // (false means little-endian)Can you please suggest where I am going wrong ?

  • Flash Video Play Does NOT Display Controls

    I am using Flash Pro 8 - putting FLV files in SWF files using
    Flash Pro 8 and then "publishing" to Html and SWF to a location on
    my hard drive.
    When I display the webpage from my Hard Drive from where ever
    on my hard drive I initially published to from Flash 8 Pro -
    everything works fine - videos play and video control bar shows and
    works.
    When I publish this website to web server the video displays
    and plays but NO Video Controller Bar (at bottom of the video)
    shows at all.
    Symptom: when I make an Html, SWF and FLA file into a folder
    on my hard drive and display them in the browser the video control
    bar shows. When I copy those three files into the hard drive
    website in FrontPage, the video shows but the video control bar
    does not.
    So, I re-made the Html, SWF, and FLA files and put them
    directly into the FrontPage website (on my hard drive) then
    everything works fine when I use broswer (IE 6 or Firefox). z
    But, when I publish the hard drive website to the remote
    website hosting company, the video control bar disappears -
    everything else works fine (video shows OK just no video controller
    bar.)
    My guess is that the SWF file has a non-relative URL
    reference concerning the video control bar and when the three files
    (Html, SWF and FLA) are moved to new location then that
    non-relative address rears its head.
    I should NOT publish from Flash 8 Pro directly to remote
    webserver as it has FrontPage Extensions and does not like to talk
    to FTP changes to website not coming from FrontPage client.
    is my guess right? What to do?????
    [email protected]

    Did you upload the skin swf file to your server also? That is
    a common missed step.

Maybe you are looking for

  • Problem editing Word docs with Magic Trackpad

    Hi--I'm a playwright working in Word. I recently purchased a magic trackpad. I'm having a tough time selecting text for cutting, copying, etc. I'll want to select a word or two but wind up getting the whole paragraph, an incomplete chunk, or nothing

  • Mail not recognizing digital certificate

    Hi all, I had a digital certificate generated by .Mac which worked fine in mail. Today I noticed that mail stopped giving me the option to digitally singed my mails. Did someone notice this behavior? Is there a fix? Thanks, Ziv

  • XML Editor Frame Work

    Hi , PLZ tell me any one regarding XML editor frame work . I saw the one blog in sdn but it is not help full . Points will be revert back. Thanks, Sumanth

  • Can't Update Genius, No Genius Mixes

    Since installing iTunes 9 on Snow Leopard, I can't Update Genius. When I try to, I get the following message: "We could not complete your iTunes Store request. The network connection was lost. There was an error in the iTunes Store. Please try again

  • IOS 6 Wi-Fi fix that worked for me.

    I just downloaded IOS 6 and my Wi-fi was not working correctly, everytime I tried to connect to Wi-Fi it took my to an apple page and never loaded wi-fi up.  Here's what I did to fix it.  Click on settings>Wi-Fi>Click blue arrow next to network tryin