I'm trying to find code that has a seek bar roll over effect as HULU and YouTube.

Hi
The seekbar roll over will not just show the NetStream.time but also has the frames screen shot.  I've searched several sites but no clear answer yet.
I'm using actionscript 3 in FLash CC and can also use Flash Builder.
Thanks

Please find the below code -
1) Use your actual variable instead of dummy.
2) Position of thumbnails should be move as per mouseMove on seekBar. Get the mouse X posion and set the xpos of your thumbnail which contain either Video object or image display holder.
package  {
  import flash.display.MovieClip;
  import flash.events.MouseEvent;
  import flash.events.TimerEvent;
  import org.osmf.events.TimeEvent;
  import flash.utils.Timer;
  import flash.net.NetStream;
  public class SeekThumb extends MovieClip {
  private var seekBtn:MovieClip;
  private var getVideoFrameAtSecond:Number = -1;
  private var durationOfVideo:Number = 100// Asume that we have 100 seconds video
  private var timer:Timer;
  private var counter:Number = 0;
  private var delay:Number = 1;  // It can be updated as per smoothness.
  private var netStream:NetStream;
  private var lastSeekPos:Number;
  public function SeekThumb() {
  // constructor code
  this.addChild(createSeekButton());
  timer = new Timer(200);
  timer.addEventListener(TimerEvent.TIMER, updateQos);
  counter = delay;
  private function createSeekButton():MovieClip{
  seekBtn = new SeekButton();
  seekBtn.buttonMode = true;
  seekBtn.addEventListener(MouseEvent.MOUSE_MOVE, seekMouseMove, false, 0, true);
  seekBtn.addEventListener(MouseEvent.ROLL_OVER, seekOver, false, 0, true);
  seekBtn.addEventListener(MouseEvent.ROLL_OUT, seekOut, false, 0, true);
  seekBtn.x = 50;
  seekBtn.y = 100;
  return seekBtn;
  private function seekOver(event:MouseEvent):void{
  timer.start();
  private function seekOut(event:MouseEvent):void{
  timer.stop();
  private function updateQos(event:TimerEvent):void{
  //trace("counter = "+counter)
  if(counter>0){
  counter--;
  }else{
  // Enable below funtion as per your need.
  //updateVideoFrame(getVideoFrameAtSecond);
  //addImageOfVideoFramesAt(getVideoFrameAtSecond);// If you want to show your bitmap image then pass the bitmap image params here or customize your methods here
  trace(getVideoFrameAtSecond);
  private function addImageOfVideoFramesAt(seekTime:Number):void{
  var getBitmapMovie:MovieClip = myStoredThumbArray[seekTime]// Set the image url here from array which you have already stored/ traced from main source of image which you provided.
  previewHolder.addChild(getBitmapMovie);
  private function updateVideoFrame(setId:Number):void {
  try {
  if (netStream!=null && lastSeekPos!=setId) {
  lastSeekPos = setId;
  netStream.play(netStreamURL, setId);
  netStream.pause();
  //netStream.soundTransform = setVoluem to 0
  } catch (error:Error) {
  trace("UpdateVideo Frame Error: "+error);
  private function seekMouseMove(event:MouseEvent):void{
  var currentMc:MovieClip = MovieClip(event.currentTarget);
  getVideoFrameAtSecond = Math.round(currentMc.mouseX*durationOfVideo/seekBtn.width);
  counter = delay;
Re: How to show video frames as still preview image when roll over on seek bar just like Hulu? 

Similar Messages

  • How do I find music that has been uploaded to iTunes from a purchased CD and iTunes is "unable to find the original file?" I no longer have the CD. I have tried all the usual methods of looking in my iTunes library and through Find. No Luck.

    How do I find music that has been uploaded to iTunes from a purchased CD and iTunes is “unable to find the original file?” I no longer have the CD. I have tried all the usual methods of looking in my iTunes library and through Find. No Luck.

    Backup drive?
    Subscribe to iTunes Match?
    If neither of the above and you don't have the CD and can't find your tracks on the computer then they you're stuck.  A file recovery utility will cost $100, plus another $100 for an external drive to which to resue the files, and may not even work.  You can buy a lot of CDs for $200.

  • Am trying to update iPod that has iOS 2.2.1 to iOS 4.2 but I am getting the following error message, the iPod could not be restored. An unknown error occured (-1).

    Hi , I am trying to update iPod that has iOS 2.2.1 to iOS 4.2 but I am getting the following error message, "the iPod could not be restored. An unknown error occured (-1)." I would appreciate if anyone could let me know what the problem is and if it is possible how to fix it? Thanks

    Error -1
    Attempt to restore your iOS device two more times. If the issue is still unresolved, the device may need service.
    The "device may need service" means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I am trying to download a movie onto my brand new ipod that has nothing on it. it is a 8gb ipod and the movie is 3.4 gb. halfway through it tells me there is no more space to download the movie. how do i fix this?

    i am trying to download a movie onto my brand new ipod that has nothing on it. it is a 8gb ipod and the movie is 3.4 gb. halfway through it tells me there is no more space to download the movie. how do i fix this?

    Go to the Store tab in iTunes and click on the Check For Available Downloads.

  • HT5622 I'm trying to find out why am I not being able to update my apps and there telling me my payment method is declined !  Due to the fact that it's continuously stating this I'm am trying to enter a new card !

    I'm trying to find out why am I not being able to update my apps and there telling me my payment method is declined !  Due to the fact that it's continuously stating this I'm am trying to enter a new card !

    Do you recognize the ID?

  • I have been trying to open itunes that has already been installed. But, the thing is it never opens and when i do right click and trouble shoot also, it doesnt open. I dont whats wrong with itunes and my comp is 64 bit windows 7. Can somebody please help

    I have been trying to open itunes that has already been installed. But, the thing is it never opens and when i do right click and trouble shoot also, it doesnt open. I dont whats wrong with itunes and my comp is 64 bit windows 7. Can somebody please help

    no its 64 bit version of itunes. Can you please help me. I am not able to sync my iphone.

  • [svn:fx-trunk] 10459: Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking , etc.

    Revision: 10459
    Author:   [email protected]
    Date:     2009-09-21 08:42:44 -0700 (Mon, 21 Sep 2009)
    Log Message:
    Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking, etc.
    Improving revision 10199 a bit, to allow for single line comments.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22027
    Reviewer: Paul
    Tests run: Checking, Compiler cyclones
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22027
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • I need to get photos off a water damaged iPhone 3GS. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    I need to get photos off a water damaged iPhone 3GS. It spent time underwater, saltwater. I let it dry for a week, turned it on, the apple symbol came on, then it died. I need to retrieve my photos off it. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    You're talking about the logic board. The two most likely things to get toasted, with water damage, are the battery(it shorts out), & the logic board. The worst water damage would be salt water. I'm afraid your logic board is toast.

  • I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code?  If not how do I figure out the code or how t? o remove it?

    I have an IPad with a Restriction code that we cannot remember.  Is it possible to delete and restore the IPad without the code.  If not how do I figure out the code or how to remove it?

    The only option is to wipe the device clean and restore it to factory settings.  Hope you have a backup.
    Follow the instructions in  iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
    Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
     Cheers, Tom

  • Can you help me find pix that I stupidly made a new folder in temp files and now can't find my pictures?

    Can you help me find pix that I stupidly made a new folder in temp files and now can't find my pictures?

    Mac Pro
    Using a MacBook Pro    
    Two different computers.  One is a desktop & the latter is a Notebook.  Which one are you having issues with? 
    Which os is installed on your computer?
    Please describe in detail all you have attempted to do in order to resolve the issue.  How did you "search?"

  • Is there an app that allows me to scan a document and read a bar code that has some sort of action defined

    I would like to be able to scan a document that has a barcode or QR code on it.  I want the barcode to tell the app what to do with the document: store it in a specific folder, put a date/time stamp (jpg) on the document, etc.  I have found some MS based apps but nothing for my mac.  Any ideas would be appreciated.
    Thanks.

    I did find this:
              http://www.simpleindex.com/Barcode_Recognition/document_scanning_barcode.asp
    But was hoping for something more apple like or even transparent (like a script or soemthing in automator)

  • How to find documentation that has moved?

    Is there any way to find out where Apple documentation has gone?
    I used to point others to http://support.apple.com/kb/TS1628 when trying to help in the .Mac Forums (.Mac: Troubleshooting syncing issues or issues in the .Mac preferences Sync or Advanced pane) but this article is no longer there.
    I've tried using the search option to find out what has replaced it but no luck so far.
    I'm not sure if it disappeared when the transition from .Mac to MobileMe happened.
    Regards,
    Colin R.

    Colin Robinson wrote:
    Hi romad,
    I've been bookmarking them and checking them before posting links to them. That one has disappeared completely so I was trying to find its replacement - the thought being that if it has gone then it must have been pulled for a good reason, hence no need to keep a copy on my machine.
    True, but it might still have had useful info. You could then use c&p to insert the text, but with a disclaimer that some info might be outdated. Remember that Apple's reason may be "good" for them but not for their customers.

  • How to Find request that has to do Reverse posting after compression

    1. one record in cube got doubled Example V = 10 but it is displaying V = 20 and my cube got compressed and I donu2019t know which request that has to do Reconstruct . I donu2019t want to do full load or selective deletion and again reload that data .  Please suggest better Options I can approach ?
    2. I have don one enhancement for data source 2LIS_ 13_VAHDR  in Dev & Quality  and successfully working fine . Before moving to production what are basic steps need to taken care without disturbing existing business . what is the sequence of transport request ?
    3. How delta work in generic extraction using time stamp , Numeric , Date  when compared to logistics.?
    Thanks,
    Mahendra.

    Hi jigg,
    Thanks for the info.
    In my sequence file, besides the main sequence, I also enabled "SequenceFileLoad" callback. In "SequenceFileLoad" sequence, I added some instruments initialization tests. The goal is to initialize the instruments only once when the sequence file is loaded. Therefore I need to know when the "SequenceFileLoad" is finished or when the sequence file has finished loading.
    My first idea is to use the event "axApplicationMgr_SequenceFileOpened", but I found that I will catch this event before the "SequenceFileLoad" execution finished.
    And then, I also found that together with the execution of sequence "SequenceFileLoad", there are 2 events in my C# code: "axApplicationMgr_StartExecution" and "axApplicationMgr_EndExecution" triggered. So I was thinking may be I can use "axApplicationMgr_EndExecution" to determine if the sequence file has finished loading. But the problem is every sequence execution will trigger these 2 events. The main sequence will also trigger these 2 events. So I needs to know the name/ID of the current executing sequence.
    So Is there a way to read current executing sequence name?
    Thanks and regards,
    0049

  • Inherited code that has the terminals all placed as icons

    IMHO, the stupidest thing that we deal with in LabView is neophytes creating programs and using terminals placed as icons. Space on a diagram is already at a premium....  Anyway, off my soapbox.  I have inherited code from a person who has used "View as Icon" terminals ALL OVER the diagrams. Our standard is to not do that and rather than click on EVERY SINGLE terminal (there are a lot), is there anyway that I can do a mass property change of all the terminals so they are not viewed as icons?
    Note to NI....  get rid of that option. However, I am not opposed if some can tell me a good reason for maintaining that option and having large icons all over the place that to the uninitiated are easily confused with the similarly sized sub-vis.
    Thanks.

    altenbach wrote:
    Personally I would prefer something a little bit less radical than "...everything in folder and subfolders...". How about something that can be placed in the menu which then would apply the action to the current VI only?
    The original poster sounded like he needed something that would be a one-shot fix for everything in his hierarchy.  For those of you who wish to write your own tool to do this, here is a subVI you can call that takes in a VI reference and performs the non-icon view conversion on that VI.  It has a boolean input to specify whether or not you want to save the VI after the conversion.  Saved in 8.0.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Change Terminals to Non-Icon View (Single VI).vi ‏24 KB

Maybe you are looking for

  • Show file type in iPhoto

    I'm sure I used to be able to see the file extension in iPhoto 9.4.3 e.g. .jpg or .tif  etc. Is there a way to turn this off or on in Photos view?

  • Question about MagSafe Power Adapter

    I just got a new magsafe power adapter and wanted to know if leaving it connected to the electricity for too long damage it? Last question, my battery is dead, should I take it off andrun on the adapter, or just leave the battery on? A friend of mine

  • Which is better lease line or VPN??

    Hi..I need to connect 10 sites with no web portal,public users...which is better between lease line or VPN ..is there a need of firewall?...Does VPN also covers the L4-L7 securities ??..should I go for lease line or VPN ?? When I go for VPN, still th

  • Compressing/ optimising image sizes

    Hi all, I am currently working on a horizontal image slideshow. I have around 35 large and high quality images that are simply aligned next to each other and the slideshow is controlled by horizontal scolling. My problem is that the images take very

  • Rotate sheet to print

    Hello, I'm trying to print out a Numbers08 work sheet. If I can rotate the chart to orientate up/down instead of left/right it will fit on the width of a single page. Didn't get much help from the help box, but I probably wasn't wording the question