Embedding YouTube videos doesn't work

Support Ticket

+status
answered
+tags
 

I'm trying to embed a youtube video using one of my cardtype forms.  But after submitting it shows up with some error saying Chrome can't find the DNS.  See screen shot attached.  Wagn.org clearly has YouTube videos embedded, so I'm guessing I'm doing something wrong here.  

 

Two thoughts - one, is the embedding code in an HTML card (much more likely to work), and two, would you post the full content of the card that has the embed code in it?

--John Abbe.....2013-07-02 23:50:16 +0000

I am using the embed code in an HTML card. I'm using a form that I created from a custom cardtype to create the cards I want the YouTube code embedded on. How exactly should I post to the full content of the card that has the code on it?

--Anthony Gualandri.....2013-07-03 15:20:52 +0000

Here:

--John Abbe.....2013-07-04 08:14:40 +0000

And/or if the page is somewhere I can access, just post the URL.

--John Abbe.....2013-07-04 08:16:36 +0000

Here's the URL to the page: 

--Anthony Gualandri.....2013-07-08 22:50:35 +0000

Okay, view=raw works. Would you post the raw HTML in the card I provided above?

--John Abbe.....2013-07-09 08:04:02 +0000

Doesn't look like it works (see above). I also tried pasting in the iframe HTML (newer YouTube embedding) and it didn't display properly either.

--Anthony Gualandri.....2013-07-09 13:35:07 +0000

Hunh. Trying it myself here:

--John Abbe.....2013-07-09 15:27:58 +0000

Your code didn't have the "http" in it John. When I added that in it worked. Where did you copy it from?

--Ethan McCutchen.....2013-07-09 15:31:23 +0000

Copied it straight from where YouTube tells you to grab the embed code in your video manager. John, can you make your HTML2 card editable by anyone so that I can see what Ethan is talking about? Thanks guys!

--Anthony Gualandri.....2013-07-09 15:33:27 +0000

Actually, Anthony's had the same problem. I just added "http:" before the // and it fixed it. Weird. I'd like to understand where things are going wrong there. But the workaround should be straightforward.

--Ethan McCutchen.....2013-07-09 15:37:19 +0000

Anthony, you can always do something like view=raw to see the raw code.

--Ethan McCutchen.....2013-07-09 15:38:48 +0000

 

--Ethan McCutchen.....2013-07-09 15:40:10 +0000

Is there any way for you guys to change this requirement in Wagn since YouTube doesn't generate the embed code with the http? I know a lot of our users who will be submitting content will wince if we tell them they have to go editing the HTML to add that in. Is there a way for us to format the HTML card parts of the form we're using so that they already have all of the YouTube code we want in there, and all users submitting things have to do, then, is paste in the actual URL video and not the embed code? Kind of like a template for our embed code so that we can format it how we want, but keep it simple for users to add video content.

--Anthony Gualandri.....2013-07-09 15:40:33 +0000

Yes. Evidently youtube has recently stripped the http from its embed code, which is why this problem is now surfacing.

 

The reason why it's breaking on wagn is the same issue outlined in Twitter widget not rendering. Wagn is autodetecting urls and turning them into HTML links. I'll make a ticket to make HTML cards skip url autodetection and try to get that deployed in the next point release. This should solve a host of problems, and it moves the parsing code in a direction we already want and need.

--Ethan McCutchen.....2013-07-09 15:47:01 +0000

Sounds good. Thanks guys. When's the next point release scheduled to be released? Until then, maybe I can create some HTML content that I save in the form so that participants just have to paste the actual video url into that code to submit an entry. Allows us to pre-format things a bit more than the straight YouTube embed code.

--Anthony Gualandri.....2013-07-09 15:59:10 +0000

There's no hard schedule. Usually we get one out every week or two.

--Ethan McCutchen.....2013-07-09 16:01:20 +0000

Oh, great. So not like an annual or biannual thing. Awesome. Hey, can we strip out the YouTube embed code from this thread and put something else in it's place? I was using a video that isn't public. Thanks again guys!

--Anthony Gualandri.....2013-07-09 16:09:25 +0000

I just deleted those. Now that we've diagnosed the problem, I don't think we need them.

--Ethan McCutchen.....2013-07-09 16:14:37 +0000

this was deployed a bit back (sorry for not announcing). should work fine now.

--Ethan McCutchen.....2013-09-12 19:39:16 +0000