Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to embed a Youtube video

Featured Replies

<iframe width="420" height="320" src="http://www.youtube.com/embed/LSnpYTHM" frameborder="0"> </iframe>

Why this does not work to me?

The black rectangle of youtube object is shown , the preloader comes up loading but the video never loads.

The html file on which video is placed is not online , it loads from my local disk , however if it points to a url and I am connected it should work (?).

Thanks

ps .:

by the way , I ´ve seen on some pages in the web the embeded videos are not shown as the page loads as a dark rectangle , what is very ugly , but it is shown as a picture and the controls are shown as well. how to do thiis ?

Edited by ronwolpa

That video url doesn't play a video if I enter the url directly into a browser address bar, but I get the YouTube buttons at the bottom, so perhaps the video has been deleted? I tried other videos from teh YouTube site which did work.

 

Make sure that you have JavaScript/ActiveX enabled.

As said before the video is probally removed!

 

If you don't like the black theme, you can get the white theme

 

Link

 

 

Cheers B)

  • Author

As said before the video is probally removed!

If you don't like the black theme, you can get the white theme

Link

Nope , I made a mistake , the correct code is LSnpYTHM-do

 

Both are still on the server I´ve just tested ;

 

And thank you very much , your link about themes was very helpful

regards

Edited by ronwolpa

I've just tried that revised url http://www.youtube.com/embed/LSnpYTHM-do directly in a Firefox window and it plays, but doesn't play when inside an iframe. Perhaps you have to play from an online iframe or use full code for video using object and embed tags to play from a local file.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.