[wp-trac] [WordPress Trac] #40808: Media Widgets: VideoPress Uploads Not Functioning Correctly

WordPress Trac noreply at wordpress.org
Thu May 18 20:04:20 UTC 2017


#40808: Media Widgets: VideoPress Uploads Not Functioning Correctly
----------------------------------------+-----------------------------
 Reporter:  timmydcrawford              |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Widgets                     |    Version:
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 With the media widgets now merged in for 4.8, I'm opting to open this
 issue here and close out the corresponding legacy issue at
 https://github.com/xwp/wp-core-media-widgets/issues/160

 Original Issue Report
 ----

 Steps
 1- Install Jetpack and a plan that includes VideoPress
 2- Via the customizer, create a new Video Widget
 3- Upload a new video to the library, note the preview in the modal will
 show a Jetpack Video Processing image
 4- It seems after clicking Add to Widget, the media items post URL is
 returned and set on the widget instance, as such the preview in the widget
 and in the customizer will not work

 Alternatively, uploading a video via the Media Library directly, then
 selecting it within a Video Widget from the library works fine.

 ----

 Essentially what is happening is the attachment page URL is being returned
 from the media modal after an upload has been initiated on video files via
 VideoPress.  The Video Widget attempts to use the attachment URL as a
 source for a {{{video}}} tag and in the end the URL is rendered in the
 widget instead of a video player.

 Two issues need to be addressed here to allow for plugins that handle
 transcoding off-site to work properly:

 1- A way, or "best practice" at least to over-ride the URL used within the
 widget preview.
 2- Determine the best way to grab the correct "final" URL to be used in
 the front-end widget.  It seems like this should be working since the
 {{{render_media}}} for the Video Widget uses {{{wp_get_attachment_url}}}
 which JP hooks into, but it currently is not working properly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40808>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list