Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Inject video code in Instant article

$
0
0

Replies: 0

First off I love the product. I used the Playwire video player. The video player code looks similar to the following.

<script data-config=”//config.playwire.com/1000771/videos/v2/5220294/zeus.json” data-height=”100%” data-width=”100%” src=”//cdn.playwire.com/bolt/js/zeus/embed.js” type=”text/javascript”></script>

It is ignored by Instant Articles for WP. After the article is posted I edit it within the Facebook Dashboard by adding the following code in the position where the video player was.

<figure>
<video>
<source src=”http://domain.com/VideoFile.mp4″ type=”video/mp4″ />
</video>
</figure>

The problem is that if I edit the blog post, the old article is overwritten and I must reedit in the facebook dashboard again. I would love to code it as follows.

<script data-config=”//config.playwire.com/1000771/videos/v2/5220294/zeus.json” data-height=”100%” data-width=”100%” src=”//cdn.playwire.com/bolt/js/zeus/embed.js” type=”text/javascript”></script>

<!– Instant Articles for WP VIDEO BEGIN
<figure>
<video>
<source src=”http://domain.com/VideoFile.mp4″ type=”video/mp4″ />
</video>
</figure
Instant Articles for WP VIDEO END –>

The idea is that the script would be execute on my web server. The <figure> … </figure> would be ignored. But I would want a Instant Articles for WP custom transform to remove the comments and stick the <figure> .. </figure> in there.

How can I accomplish this? Thanks kindly.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>