Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Embedding YouTube video in article

Embedding YouTube video in article

Scheduled Pinned Locked Moved Site Bugs / Suggestions
questioncsharpcomarchitecture
12 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Daniel Vaughan

    Hi, I'm trying to place a YouTube video at the top of my article:

    <iframe width="560" height="315" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

    When I save the article, it is changed to this:

    How can I add a video to my article? Regards, Daniel

    Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

    J Offline
    J Offline
    Jochen Arndt
    wrote on last edited by
    #2

    See the Code Project Article FAQ[^] on how to embed a video. Note also this:

    Quote:

    The article editor will show only a placeholder while viewing in WYSIWYG mode.

    D 2 Replies Last reply
    0
    • J Jochen Arndt

      See the Code Project Article FAQ[^] on how to embed a video. Note also this:

      Quote:

      The article editor will show only a placeholder while viewing in WYSIWYG mode.

      D Offline
      D Offline
      Daniel Vaughan
      wrote on last edited by
      #3

      Thanks!

      Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

      1 Reply Last reply
      0
      • D Daniel Vaughan

        Hi, I'm trying to place a YouTube video at the top of my article:

        <iframe width="560" height="315" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

        When I save the article, it is changed to this:

        How can I add a video to my article? Regards, Daniel

        Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #4

        I've just had a chance to look at your video mate - I cannot wait to see the completed article. This looks great (and even has a touch of CP orange).

        This space for rent

        D 1 Reply Last reply
        0
        • J Jochen Arndt

          See the Code Project Article FAQ[^] on how to embed a video. Note also this:

          Quote:

          The article editor will show only a placeholder while viewing in WYSIWYG mode.

          D Offline
          D Offline
          Daniel Vaughan
          wrote on last edited by
          #5

          Unfortunately it doesn't work. When I place the following in my article, it's stripped out:

          <iframe style="height:315px;width:560px" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0"></iframe>

          Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

          J S 2 Replies Last reply
          0
          • P Pete OHanlon

            I've just had a chance to look at your video mate - I cannot wait to see the completed article. This looks great (and even has a touch of CP orange).

            This space for rent

            D Offline
            D Offline
            Daniel Vaughan
            wrote on last edited by
            #6

            Thanks mate :)

            Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

            1 Reply Last reply
            0
            • D Daniel Vaughan

              Unfortunately it doesn't work. When I place the following in my article, it's stripped out:

              <iframe style="height:315px;width:560px" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0"></iframe>

              Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

              J Offline
              J Offline
              Jochen Arndt
              wrote on last edited by
              #7

              Sorry to hear that. Probably something has been changed since writing the FAQ. Maybe @Sean-Ewington can have a look (he will now be notified of this post).

              1 Reply Last reply
              0
              • D Daniel Vaughan

                Unfortunately it doesn't work. When I place the following in my article, it's stripped out:

                <iframe style="height:315px;width:560px" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0"></iframe>

                Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

                S Offline
                S Offline
                Sean Ewington
                wrote on last edited by
                #8

                Try putting it in as: <iframe style="height:315px;width:560px" src="//youtube.com/embed/ziwcTWFEY4U"></iframe>

                Thanks, Sean Ewington CodeProject

                D 1 Reply Last reply
                0
                • S Sean Ewington

                  Try putting it in as: <iframe style="height:315px;width:560px" src="//youtube.com/embed/ziwcTWFEY4U"></iframe>

                  Thanks, Sean Ewington CodeProject

                  D Offline
                  D Offline
                  Daniel Vaughan
                  wrote on last edited by
                  #9

                  Hi Sean, I tried it. When I save my article it changes the iframe element to:

                  If I preview the article, I see the video. But when I save the article, the iframe changes to the placeholder div. Cheers, Daniel

                  Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

                  C 1 Reply Last reply
                  0
                  • D Daniel Vaughan

                    Hi Sean, I tried it. When I save my article it changes the iframe element to:

                    If I preview the article, I see the video. But when I save the article, the iframe changes to the placeholder div. Cheers, Daniel

                    Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

                    C Offline
                    C Offline
                    Chris Maunder
                    wrote on last edited by
                    #10

                    Let me dig in. Where's that hammer...? [Edit: is it this article[^]? Seems to be working. Did you have to do anything special? Or was there something you had to not do to get it working? If there's still an issue I'll dig in further.

                    cheers Chris Maunder

                    M 1 Reply Last reply
                    0
                    • C Chris Maunder

                      Let me dig in. Where's that hammer...? [Edit: is it this article[^]? Seems to be working. Did you have to do anything special? Or was there something you had to not do to get it working? If there's still an issue I'll dig in further.

                      cheers Chris Maunder

                      M Offline
                      M Offline
                      Meshack Musundi
                      wrote on last edited by
                      #11

                      Hi Chris. I'm experiencing this issue. Video was showing up in preview but isn't showing after publishing: [SignalChat: WPF & SignalR Chat Application](https://www.codeproject.com/Articles/1181555/SignalChat-WPF-SignalR-Chat-Application)

                      "As beings of finite lifespan, our contributions to the sum of human knowledge is one of the greatest endeavors we can undertake and one of the defining characteristics of humanity itself"

                      1 Reply Last reply
                      0
                      • D Daniel Vaughan

                        Hi, I'm trying to place a YouTube video at the top of my article:

                        <iframe width="560" height="315" src="https://www.youtube.com/embed/ziwcTWFEY4U?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

                        When I save the article, it is changed to this:

                        How can I add a video to my article? Regards, Daniel

                        Daniel Vaughan Twitter | Blog | Microsoft MVP | LinkedIn | Calcium | Outcoder

                        M Offline
                        M Offline
                        Meshack Musundi
                        wrote on last edited by
                        #12

                        Hi Daniel, how did you manage to resolve this issue?

                        "As beings of finite lifespan, our contributions to the sum of human knowledge is one of the greatest endeavors we can undertake and one of the defining characteristics of humanity itself"

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups