[wp-trac] [WordPress Trac] #38367: Adding Screencast.com as an oEmbed provider

WordPress Trac noreply at wordpress.org
Thu Oct 20 15:44:56 UTC 2016


#38367: Adding Screencast.com as an oEmbed provider
-------------------------+------------------------------
 Reporter:  paulstanos   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Embeds       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by paulstanos):

 I would like to bring up one issue I've discovered with embedding
 Screencast videos. Using a WordPress 4.5.4 site and pasting a link to a
 video does result in it getting auto-expanded in the editor (which I would
 only expect if Screencast was added as an oEmbed provider). However, I
 noticed some issues loading plugins and also CORS requests that I believe
 are due to iframe sandboxing: [http://screencast.com/t/0p4u6ceW0hF see the
 errors here].

 Users can normally embed videos using an embed code we provide them that
 involves using an iframe, which works as I expect when used directly in
 the WordPress editor. The oEmbed endpoint just returns that same embed
 code to be used in the HTML, so I'm not sure why I would be seeing
 different results here.

 I did find [https://make.wordpress.org/core/2015/10/28/new-embeds-feature-
 in-wordpress-4-4/ this post] about embedding of other WordPress posts
 explaining some about sandboxed iframes. One thing I noted was that the
 src attribute for the iframe ends in /embed/ when embedding other
 WordPress posts. Screencast's content links also ends in /embed/ in the
 src to our embeddable iframe.

 This might be a long shot, but could the fact that our links end in
 /embed/ are resulting in WordPress embedding our content in this way
 without us being an oEmbed provider? Is there anything we can do about the
 iframe sandboxing so videos will work in the same way that using the embed
 code does?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38367#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list