WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 4 years ago

#1375 closed defect (fixed)

When video is shared in Facebook, only Flash player is available

Reported by: vloo Owned by: iandunn
Milestone: Priority: normal
Component: WordPress.tv Keywords:
Cc:

Description

  1. Open a video on wordpress.tv and play it => all is good.
  2. Share the link in Facebook => video can't be played as it asks for Flash (which is bad).

Attachments (2)

facebook-shared-video-with-flash.png (45.6 KB) - added by vloo 4 years ago.
meta-1375.diff (1.6 KB) - added by kraftbj 4 years ago.
Set og:video tags to mp4

Download all attachments as: .zip

Change History (7)

#1 @Otto42
4 years ago

The video passed via OpenGraph is indeed a flash video. Example:

<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video" content="https://videopress.com/v/vbkXAcCQ" />
<meta property="og:video:secure_url" content="https://videopress.com/v/vbkXAcCQ" />

This is one of the types Facebook accepts.

https://developers.facebook.com/docs/sharing/webmasters#media

They also accept video/mp4, which we should consider using instead, since that is also available:

<meta name="twitter:player:stream" content="https://wptv.files.wordpress.com/2015/11/davide-casali-four-steps-make-talk-wcvie-2015.mp4" />

#2 @kraftbj
4 years ago

This is on the wp.com/Jetpack side. I've opened a bug report at https://github.com/Automattic/jetpack/issues/2950 so we can update the og:video tags that we add.

For the sake of stating, it looks like the Twitter tags are theme-specific for the wordpress.tv theme while FB is stock wp.com/Jetpack.

#3 @Otto42
4 years ago

Jetpack's OpenGraph tags are easily overrideable, if we'd prefer to do that. The same theme code can do it easily, since it already knows the mp4 URL.

All we have to do is to add a filter to jetpack_open_graph_tags.

@kraftbj
4 years ago

Set og:video tags to mp4

#4 @kraftbj
4 years ago

meta-1375.diff overrides the og:video tags to set mp4 and adds proper mp4 URLs.

#5 @iandunn
4 years ago

  • Owner set to iandunn
  • Resolution set to fixed
  • Status changed from new to closed

In 2038:

WordPress.tv: Embed MP4 videos in Facebook posts instead of Flash.

Fixes #1375
Props kraftbj

Note: See TracTickets for help on using tickets.