hi zeelia
the video in YouTubeis displayed by a flash control, so you could use a IHTMLObjectElement:: QueryInterface to get player interface. but you need to query theAPIlibrary anddocuments of the flash component to get its menthods, otherwise the URL of themoviehave been Encrypted so that you couldn't get it easily,and the youtube may use the actionscript to get the length of the flv movie,so you couldlook this thread to get more information.
http://www.gigfoot.net/faq/114.htmlhttp://www.webreference.com/js/tips/010622.htmlif you have any issue please feel free to tell us
best wish
xingwei
Please remember to mark the replies as answers if they help and unmark them if they provide no help.