Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Youtube Properties
 

Youtube Properties

Hi!
I have created an web browser and when i enter a youtube video i would like to get the videos length/duration. Is that possible? How can i do this?

Example:
Lets say that i on my web browser enter:
http://youtube.com/watch?v=OQq8lvf0MhU

and the site with the video loads up, how would i do to get the length of the currently showed video?
//Thanks in Advance, Zeelia
Zeelia  Sunday, October 26, 2008 7:31 PM
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.html

http://www.webreference.com/js/tips/010622.html
if 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.
Xingwei Hu  Friday, October 31, 2008 8:46 AM
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.html

http://www.webreference.com/js/tips/010622.html
if 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.
Xingwei Hu  Friday, October 31, 2008 8:46 AM

You can use google to search for other answers

Custom Search

More Threads

• ListBox with no Items selected
• System.IO ---- "The process cannot access the file ...."
• Find what server a DFS link points to.
• THE SHAPE OF THE BUTTON & THE FILL COLLOR
• Bound TextBox resets value
• Trying to use a variable for the name of a file
• Parameter is not valid ?
• reading text from a document and displaying it
• Feature Request: Regions Allowed In Method Bodies
• How to solve the expection. Exception of type 'System.ExecutionEngineException' was thrown... ?