Page 1 of 1

Embed code for Vimeo movies that works?

PostPosted: Fri Dec 27, 2019 9:36 pm
by isabel95
Their provided embed code accompany a video doesn't work. I messaged for help today and received this reply:

"In order to embed your video, you will need access to the HTML code for the section of the page you would like your video to appear. If you are able to add elements to you PBase page, you can copy the embed code from the "share" link of the video in question and paste it into your HTML code. This will create an iframe containing your video displaying the embed settings you have saved.

That being said, it is possible that may not allow this type of customization to the HTML code, in which case you may only be able to link to the video in question in your photo description. If you have seen embedded videos on others' PBase pages, please send a URL so I can take a closer look. A Pro account is also required for embedding videos for commercial purposes"

So has anyone been able to embed a Vimeo video under one of their pictures lately?

Re: Embed code for Vimeo movies that works?

PostPosted: Sat Dec 28, 2019 10:25 pm
by richo
To embed a video it has to be published somewhere with public access. I don't think you can upload one here. Do a search for "w3schools embed video" for examples. I tried a couple and did not get it to work.

Re: Embed code for Vimeo movies that works?

PostPosted: Sun Dec 29, 2019 2:32 am
by dw_thomas
I agree with Richo, I don't believe there's any way to upload a video directly to PBase. I have links on a couple of my galleries to bring videos up from my personal website, but, at least as I have them installed, you have to click a link to get to them. I suppose having them auto-play somehow may result in the data having to come through PBase, and videos are bandwidth hogs which they would understandably prefer to avoid.

I recall a while back you were wrestling with getting audio files to auto-play. If you ever got that to work the way you wanted, perhaps a similar approach might be a possibility with videos hosted "somewhere."

Facebook allows video uploads, but I believe they crank down the quality to reduce storage space and bandwidth -- and FB generates revenue by throwing ads in the face of people watching the stuff so they have more incentive to accept such uploads.

So-o-o, good luck -- and happy New Year! :)

Re: Embed code for Vimeo movies that works?

PostPosted: Sun Dec 29, 2019 4:02 am
by akmc_in_au
dw_thomas wrote:I agree with Richo, I don't believe there's any way to upload a video directly to PBase.

I'm sure you're both right about that, but it wasn't actually the question. The question was about embedding a video from a remotely hosted site, specifically Vimeo, into a PBase page.

A video can be embedded from YouTube easily by copying the iframe element, which can be obtained from the Share button on YouTube and looks something like this:
Code: Select all
<iframe width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The result of that is an embedded video (which does not autoplay, and nor should it ) which can be seen under this image. (For now, at least.)

The problem is that the element code that Vimeo generates looks more like this:
Code: Select all
<iframe src="" width="640" height="480" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
<p><a href="">Revisnet - Toto Cutugno - L&#039;Italiano - Тото Кутуньо - итальянский</a> from <a href="">revisnet martamulher</a> on <a href="">Vimeo</a>.</p>

Instead of pointing you straight to the video file the way the YouTube link does, it refers to a "player" page within Vimeo (which doesn't actually show the video as being embedded at all) and then whacks in a standard anchor link which links back to Vimeo. Instead of embedding and playing it on the PBase page (as you can do with a YouTube video) you have to follow the link back to Vimeo to play it. That is the crux of Isabel's problem. I've tried playing around with the code to point it back to the Vimeo video directly but none of the permutations I've tried have embedded the video either. I have a strong suspicion that it has something to do with Vimeo being a pay to play site while YouTube is more come one, come all.

Re: Embed code for Vimeo movies that works?

PostPosted: Sun Dec 29, 2019 11:24 pm
by isabel95
While going through my pbase albums I came across a Vimeo video that still was embedded and played beneath an image, so I copied the code from the edit page for that image, copied it into a Word document and then copied the current embed code that Vimeo provides, but that DOESN'T work, and substituted the video number for the number of the new video that I wanted to embed and play that and it worked!

Only problem is when you embed a Vimeo video beneath a pbase image the EXIF for the image doesn't show.

Here's the old coding and Vimeos new coding:

Vimeo Code on Pbase that worked to embed Beegie Meets Ipad Game for Cats

<iframe src="//" width="640" height="360" frameborder="0" <p><a href=”>Ricky Works For Goodies</a> from <a href="">Isabel Cutler</a> on <a href="">Vimeo</a>.</p>

Current Ricky Works For Goodies embed code from Vimeo that DOESN'T WORK on pbase:

<iframe src="" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

Substituted the Video Number for Ricky Works For Goodies in the code that worked for Beegie Meets Ipad Game for Cats and it worked, also the name of the video !!!!!! Changed nothing else!

Here’s the video I just uploaded beneath a picture: