Calling youtube URL

I can’t get the Video to load!

Here is what Im calling:

YouTubeMovie1.URL=“http://youtu.be/EF2NT957-pY

What did i forget?

Try this url.

http://www.youtube.com/watch?feature=player_detailpage&v=EF2NT957-pY

HTH

Wayne

[quote=61690:@Wayne Golding]Try this url.

http://www.youtube.com/watch?feature=player_detailpage&v=EF2NT957-pY

HTH

Wayne[/quote]

Sadly:

YouTubeMovie1.URL="http://www.youtube.com/watch?feature=player_detailpage&v=EF2NT957-pY"

also fails.

Ah. I put the url in the inspector. According to the LR the property is read-only, so I guess that’s the only way to get it to show.

Assuming this is an HTMLViewer, use LoadURL.

Oops. Missed that this is in Web. Setting URL should work.

[quote=61732:@Tim Hare]Assuming this is an HTMLViewer, use LoadURL.

Oops. Missed that this is in Web. Setting URL should work.[/quote]

I can paste the URL directly from the posts above and they all work fine in the browser. But I can’t get it to work even in a simple web app.

A YouTubeMovie control cannot change its URL at runtime- from the URL property help:

“You cannot change or specify the URL in code. The URL can only be specified in the designer.”

But you can probably accomplish what you’re trying to do in a different way. Drop a HTML Viewer control on your WebPage instead of a YouTubeMovie, and then you can set its URL property to the equivalent embed URL in code, something like this:

HTMLViewer1.URL = “http://www.youtube.com/embed/EF2NT957-pY