Latency (sync VideoElement with MovieClip)

Hi,
I have a MovieClip witch contain several visuals elements, movieclip
timeline must be sync with VideoElement.
To do that, I start movieclip timeline when BUFFERING mediaplayer state
is false, each 10 ms, I check if visual timeline needed to be resync
whith mediaPlayer.currentTime (if time difference is equal or greater
than 20 ms)
The problem is : on Windows there is a latency witch affect the user
experience, on mac it works like a charm.
I use FLash CS5 and Flex SDK 4.5 + Flash Player 10.2
This is my code (sample) :
_videoElement = new VideoElement( null, new HTTPStreamingNetLoader());
_parallelElement = new ParallelElement();
_parallelElement.addChild(_videoElement);
_mediaPlayer = new MediaPlayer(_parallelElement);
_mediaPlayer.currentTimeUpdateInterval = 10;
_mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE,
currentTimeChangeHandler);
_mediaPlayer.addEventListener(BufferEvent.BUFFERING_CHANGE,
bufferingChangeHandler);
_mediaPlayer.play();
function bufferingChangeHandler(event:BufferEvent):void
if(!event.buffering)
       timeline.play();
else
       timeline.pause();
function currentTimeChangeHandler(event:TimeEvent):void
       //check if timeline need to be sync
       var timelineInterval:Number = timeline.currentTime -
_mediaPlayer.currentTime;
       if (Math.abs(timelineInterval) > 0.2 )
               timeline.currentTime = _mediaPlayer.currentTime;
Timeline is ALWAYS sync. But visually we can see timeline in advance of
the video, probably because of latency or less depending on the system.
*** Sometimes I got 150 ms, sometimes 50ms. ***
on Mac is always less than 30 ms
If i use HTTPStreamingNetLoader NetStream.appendBytes() is used no ? so latency should be better ?
What can I do to have a latency close to 0 in any environment ?
Thanks !!

Nobody can help me ? :/

Similar Messages

  • Sync issues with Thunderbolt drives

    I'm checking to see if there are any sync issues with Mac Book Pros pre-Retina screen.
    I have a (13-inch, Mid 2012)  2.5 GHz Intel Core i5 Mac Book Pro and I'm having some sync/latency issues with a number of audio interfaces, including a Symphony I/O and a MBox Mini 2.
    I'm editing with Final Cut Pro 7.  Mavericks OS 10.9.5.  It's also happening with QT 10.3.
    I'm using a Thunderbridge with the Symphony I/O and the USB port for the MBox Mini 2, but it has the same issue.  I'm trying to get the registration number for my Pro App version of QT 7 because QT 10 is having some issues with a few arcane video formats.  Is that possible?  I can't retrieve the email because the computer that might have it is long dead, and buried in storage.
    configuration:
    Mac Book Pro to
    G RAID Studio (via Thunderbolt) to
    (Apogee Symphony I/O Thunderbridge)
    1080P monitor (via Belkin Mini Display port to HDMI cable)
    or MBox mini via USB
    Both of these setups have sync issues.  I have rigged a 1/8" stereo plug out of the headphone output and except for the occasional deafening buzz when you touch the adapter, it works okay, with no seeming sync issues.
    Is this a thing?  I understand that there is an issue with Symphony I/Os and certain Haswell Mac USB 3.0 ports.

    Hi,
    Yes, I apologize. The video editor wasn't giving me any details. I did see the 44.1/48khz issue online. So will this happen only if both are mixed in the same timeline?
    Thanks

  • I cannot open iCal because of a problem. Can anybody help me? The computer will not allow it to open and sends a message to apple each time. The icon has gone from the dock, but ical works on my iPad and I am afraid to sync it with my computer.?

    I cannot open iCal because of a problem. Can anybody help me? The computer will not allow it to open and sends a message to apple each time. The icon has gone from the dock, but ical works on my iPad and I am afraid to sync it with my computer in case it wipes everything .

    I have the exact same problem. I have not changed anything. This is probably a bug or something that has gone bad with Mac OS X (10.7.2). I have not found any solution for this on the web.
    MacBook Pro, Mac OS X (10.7.2).

  • Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help..

    Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help.

    HI, if I did this, then I believe that I cloud would then hold my info which I don't want. Is that the case? The reason is that I'm an old git, therefore used to not giving out info. Would I be right?
    Thank-You so much for taking the time to answer.
    John.

  • Just got a new iphone and am syncing it with itunes, but it will not transfer my new music or voice memos.  Help?

    I just got a new iphone 3GS and was trying to sync it with my itunes information from my old phone.  However, I keep getting multiple error messages and after the sync is complete, I find that everything has transferred except my purchased itunes music and voice memos (I record my class lectures).  I am not sure what I can do to fix this.  Any ideas?

    The error messages are:
    -"Attempting to copy to the disk 'My Iphone' failed.  An unknown error occured (-69)."
    -"The iphone 'My Iphone' cannot be synced because there is not enough free space to hold all the items in itunes library."
    -"The iphone 'My Iphone' cannot be synced.  An unknown error occured (13010)."

  • Trying to sync iPod with library, but receive this message, "The iPod is synced with another itunes library.  Do you want to erase this ipod and sync with this itunes library".  I do not want to erase my iPod... Any suggestions??  Please help!!

    Trying to sync ipod with itunes library, but I keep getting this message, "  The ipod is synced with another itunes library.  Do you want to erase this ipod and sync with this i tunes library?" 
    I do not want to erase my ipod!!!  Any suggestions?? please help!

    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
     Cheers, Tom

  • I have an iPhone 4 which is synced with a non apple laptop and wish to sync it with my new iMac.  I have backed the phone up with the laptop and am not sure how to sync it with the iMac without loosing any contacts, emails or photos from my phone.

    I have an iphone 4 which is currently synced with a non apple laptop and I wish to sync it with my new imac.  I have just backed the phone up on my laptop but am not sure what I need to do now.  I do not want to loose any contacts, emails or photos from my phone when I change sync computers.  Can anyone assist with a step by step guide as to how to achieve this oucome?  Thanks in advance.

    Have you read this?
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    The Apple web site has lots of other guidance, for example if you are migrating from Windows to Mac, read this.
    Switch 101: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518

  • How do I make my iPhone 'sent' mail folder sync exactly with my iMac 'sent' folder?

    I've got an email set up through IMAP on my iPhone and on my mac and I've been using it for years but I've realized all of my folders sync exactly with the exception of my "sent" mailbox. For some reason, when I send something on my comp, it doesn't show in the sent folder on my phone? Does anyone have a clue as to what this could be and how I get them to sync like the rest?

    Because everything is on the same home network, all are wireless except the mini, I'd rather not do a cloud base setup. It doesn't make sence to upload then download if all are on the same network. Maybe I'm asking how to setup a secure home network.

  • I purchased a song on my Ipod Touch 4 GEN. and i listened to it not 5 mins before i synced it with Itunes...then i looked in my Ipod music library and itunes library...GONE. but when i go to download, it wanted me to pay even tho i have bot it! HELP!!!

    i purchased a song on my Ipod Touch 4 GEN. and i listened to it not 5 mins before i synced it with Itunes...then i looked in my Ipod music library and itunes library...GONE. but when i go to download it, like with Apps when if you have purchased an app and it get's deleted...you can have it back for FREE
    and i tryed that with this song...and it says that " you have already purchased this song, would you like to buy it again?" but it wont let me get it again for free even tho i have bought it before...is there a way i can get it back with out having to pay??
    HHHHHEEEELLLLPPPP!!!! PPPLLLEEEAAASSSEEE!!!!!!

    You buy one and only one download.
    As it should have been transferred to your computer when you synced, you can contact itunes support and ask for an exception.
    http://www.apple.com/support/itunes

  • Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split i have a new laptop and now it keeps asking for the old ID or it'll erase my apps bought on theold account.

    Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split up and now im trying to get all my apps and info onto my new laptop with a new account but it keeps asking me for the old apple ID which she is still using and she changed the password. i tried backing it up but still nohing. When i try to back up purchased items being apps etc its keeps asking for the old one. help

    See Recover your iTunes library from your iPod or iOS device. But you'll still need the password.
    Once you have the computer authorized to use the account she could change the password again to stop you buying apps on her card (assuming it's not on yours!). It would lock you out of upgrading them too but they should work unless she uses the deathorize all feature.
    It depends on how amicable the split is...
    tt2

  • ITunes sync prob with macbook pro & iphone4s

    I can't get my iTunes on Macbook pro to transfer or sync tunes with my iphone4s. It only transfers the other way from  phone to MBpro. If I click on sync, it spins the symbol but nothing happens. It can only "share" when physically connected.

    I found iTunes version 10.6.3!  Solved... for now.

  • Iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone.

    My iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone. I am still able to download apps and music from itunes on my phone though.
    I already restored it but that didn't help.
    TIA for any replies.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • I bought an apple iPod 5th generation the other day and I cannot remember the unlock passcode. I have done the restore thing, but because I never set it up or synced it with iTunes, it does not recognize my device. It is disabled for one hour. Please help

    I bought an apple iPod 5th generation the other day and I cannot remember the unlock passcode. I have done the restore thing, but because I never set it up or synced it with iTunes, it does not recognize my device. It is disabled for one hour. There's only a few things that could be my passcode, but because it disables for an hour, it is time consuming trying to figure it out. What do I do? I do not care about having to erase everything since it's new and there's nothing on it, but it was never synced with iTunes.

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • What cable do I need to sync iPad with my classic iPod

    How do you sync iPad with iPod.?

    Hi,
    The devices must be synced using iTunes, not from one device to another.
    Carolyn  

  • I am trying to sync ewallet with my mac but my version is 10.5.8

    I am trying to sync ewallet with my mac but my version is 10.5.8
    If I buy Lion how hard is it to install and update? do I loose any data?

    Read
    Harden your Mac against malware attacks

Maybe you are looking for

  • HELP!! CC wont let me open CS6

    Hello, My CC subscription recently expired, so instead of renewing it I reinstalled my old CS6. Now, every time I try to open CS6 programs, I get the CC message saying they need to verify my subscription. Needless to say, I end up being unable to ope

  • Service item  sent to  outside vendor

    Dear Friends, I am sending my machine for service purpose to an external vendor, I wanted to send it by making a service  PO , how do we map such a scenario . Secondly I pay freight charges to service provider , I add the service condition while maki

  • How to limit the selection of Ship To Party

    I have a Biz Case: "A" user have 2 Ship to party "B" and "C" in the customer master data, when I create a OR order, I found I can use "D" user as the ship to party(of course, A is sold to party). So I want to impl this function: if sold to party is A

  • Dynamic safety stock in PP/DS

    Hello, My question is about how PP/DS uses dynamic safety stock. I use safety stock keyfigure in SNP to calculate dynamic safety stock and make it available for PP/DS. When I run planning heuristic in PP/DS, does heuristic go and execute the macro? L

  • Power switch wiring: I messed up: color/circuit diagram help?

    I messed up as I was doing some work inside my 700 MHz eMac. Managed to break one of the three wires on the power switch. Having done that before, I decided it was time to replace all the wiring with something longer and more substantial. All OK unti