Skip Navigation

[Resolved] Video is not running

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user has created an embed field and it was not working for one post. The user was getting the URL instead of a video player.

Solution:
First, the URL should be working, which is not the case, if we follow the link in /course/introduction-to-html5/ it returns an HTTP error, check this screenshot http://prntscr.com/ulq1zz

Then, we need to have the domain from where the video is loaded to be whitelisted in WordPress. Check the list of whitelisted domains by default here https://wordpress.org/support/article/embeds/#okay-so-what-sites-can-i-embed-from
And we can whitelist the domain with wp_oembed_add_provider(). Check this section https://wordpress.org/support/article/embeds/#adding-support-for-an-oembed-enabled-site

If the domain cannot return formatted HTML, we can register a callback handler with wp_embed_register_handler() . Check this section https://wordpress.org/support/article/embeds/#removing-support-for-an-oembed-enabled-site

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by deepS 4 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#1781115

Hi,
I am trying to embed videos from external sources and using embedded media fields for the same. The problem is, it is perfectly running youtube videos but not the others.
See the two examples:
hidden link (running youtube video)
hidden link (simply showing the video link)

However, I tried another way the run the non-youtube video in a WP editor box:

<video width="320" height="240" controls>
<source src="<em><u>hidden link</u></em>" type="video/mp4">
</video>

How to resolve the issue? Please help. Thanks

#1781539

Hello and thank you for contacting the Toolset support.

To better assist with this issue, I'll need to take a closer look at your backend area and check how these videos are added.
Are the videos added in a custom field?

From what I can see so far, you are using Elementor, right?

Can you allow me temporary access to check this further? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1782559

Sorry, but the provided credentials are not working for me. Please double-check them and update your last reply or you next private reply.

#1785739

Thank you for the credentials and my apologies for the late reply, but I do not work on Sundays and Mondays.

I understand the issue better now and I think that there are several steps to handle before we can find a solution.

Please read more about the oEmbed protocol on this WordPress article https://wordpress.org/support/article/embeds/
The article states:

The easy embedding feature is mostly powered by oEmbed, a protocol for site A (such as your blog) to ask site B (such as YouTube) for the HTML needed to embed content from site B.

oEmbed was designed to avoid the need to copy and paste HTML from the site hosting the media you wish to embed. It supports videos, images, text, and more.

First, the URL should be working, which is not the case, if we follow the link in /course/introduction-to-html5/ it returns an HTTP error, check this screenshot hidden link

Then, we need to have the domain from where the video is loaded to be whitelisted in WordPress. Check the list of whitelisted domains by default here https://wordpress.org/support/article/embeds/#okay-so-what-sites-can-i-embed-from
And we can whitelist the domain with wp_oembed_add_provider(). Check this section https://wordpress.org/support/article/embeds/#adding-support-for-an-oembed-enabled-site

If the domain cannot return formatted HTML, we can register a callback handler with wp_embed_register_handler() . Check this section https://wordpress.org/support/article/embeds/#removing-support-for-an-oembed-enabled-site

Can we check with another URL that can work on its own? Then, we'll check how to make it embeddable.

#1788553

Thank you!