Embedding YouTube videos doesn't work+discussion
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?
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?
Here:
And/or if the page is somewhere I can access, just post the URL.
Here's the URL to the page:
Okay, view=raw works. Would you post the raw HTML in the card I provided above?
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.
Hunh. Trying it myself here:
Your code didn't have the "http" in it John. When I added that in it worked. Where did you copy it from?
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!
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.
Anthony, you can always do something like view=raw to see the raw code.
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.
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.
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.
There's no hard schedule. Usually we get one out every week or two.
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!
I just deleted those. Now that we've diagnosed the problem, I don't think we need them.
this was deployed a bit back (sorry for not announcing). should work fine now.