Skip to content

VideoPress: make compatible with Gutenberg #8764

Closed

Description

@jeherve

It is currently not possible to upload VideoPress videos when using the new Gutenberg editor. This is something we will need to fix before WordPress 5.0.

pafL3P-cU-p2

Activity

  1. added
    Enhancement
    [Feature] VideoPress
    on Feb 5, 2018
  2. added
    [Focus] Blocks
    on Feb 23, 2018
  3. stale commented on Aug 22, 2018

    @stale

    This issue has been marked as stale. This happened because:

    • It has been inactive in the past 6 months.
    • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

    No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

  4. added this to the 6.7 milestone on Oct 15, 2018
  5. modified the milestones: 6.7, 6.8 on Oct 26, 2018
  6. self-assigned this
    on Oct 30, 2018
  7. aldavigdis commented on Nov 7, 2018

    @aldavigdis
    Contributor

    I just tested this out in wp-admin on my WPCOM standbox and it seems to be working.

  8. jeherve commented on Nov 7, 2018

    @jeherve
    MemberAuthor

    It does not seem to work at all for me. WordPress.com and Jetpack have always been quite different on that front, so let me try to summarize:

    Calypso

    This still works today. You can upload a video to VideoPress, as long as your site (WordPress.com or Jetpack) has at least a Premium plan. You can upload those videos via 2 interfaces in Calypso:

    WP-Admin, WP 4.9.8

    In this case, things work differently on WordPress.com and on Jetpack sites:

    Jetpack

    A few years back we develop a solution to overwrite the default media upload when you had a Premium Plan, when the VideoPress module was active, and when you were looking at one of 2 pages:

    • The post editor: https://yoursite.com/wp-admin/post.php
    • The grid view of the media library: https://yoursite.com/wp-admin/upload.php

    On those 2 pages, when you attempt to upload a video, instead of being uploaded to your site it is uploaded to WordPress.com servers via this WordPress.com REST API endpoint:
    https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/media/new/

    You can see this in action in this video:
    https://videopress.com/v/7zIRTgSO

    Note the difference between the 2 media items visible at the end of the video: one is hosted on WordPress.com while the other is hosted on the site itself (and thus is not a VideoPress video).

    WordPress.com (wp-admin on a WordPress.com site)

    This does not use the REST API endpoint as above, but uses an older implementation.

    Gutenberg

    This is what concerns us here. Right now, to insert a video on a site via Gutenberg, you can use the video block. That block works as is, but:

    • On WordPress.com, that block needs to be aware of whether the person has a plan to allow them to upload a video to VideoPress, otherwise you run into error messages like that, that don't explain that you could purchase a plan to be able to upload a video. https://videopress.com/v/1Piq5IAs
    • On WordPress.com, if the site has a plan, the block needs to upload to VideoPress and display the video in a VideoPress player. Otherwise you run into the following behaviour: https://videopress.com/v/NzcSReUq Everything seems to work here, when in fact the video was not uploaded to VideoPress, not transcoded into different formats to ensure max compatibility with all browsers and a HD button, and does not use the VideoPress player.
    • On Jetpack, the block needs to be made aware of the VideoPress module and its status (active or not), and uploads the video to VideoPress servers instead of storing the video locally. Otherwise the site owner will not be able to use the feature they paid for, they will just be hosting their videos locally like in this example: https://videopress.com/v/HefSy1Ng

    In short, the Video block is not aware of plan status or VideoPress as a whole and just works as a local video block.

    I hope this clarifies things a bit.

  9. aldavigdis commented on Nov 7, 2018

    @aldavigdis
    Contributor

    New issue: Uploading does not seem to work at all in Microsoft Edge. Also, when using the block in Edge, a lot of Unhandled promise rejection undefined errors are spewn out, which may be a related issue.

  10. jeherve commented on Nov 7, 2018

    @jeherve
    MemberAuthor

    Uploading does not seem to work at all in Microsoft Edge. Also, when using the block in Edge, a lot of Unhandled promise rejection undefined errors are spewn out

    👍 It may be good to report this in the Gutenberg repo, it does not look like it's been reported yet:
    https://github.com/wordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+video+label%3A%22%5BBlock%5D+Video%22+sort%3Aupdated-desc

  11. aldavigdis commented on Nov 7, 2018

    @aldavigdis
    Contributor

    Okay. I am putting this ticket aside until #10198 has been finalised. I just asked @roccotripaldi to include a global JS variable or attribute called wpcom_plan along with the block availability.

    That would facilitate this ticket.

  12. removed this from the 6.8 milestone on Nov 15, 2018
  13. mmtr commented on Jan 3, 2019

    @mmtr
    Member

    Writing this for just letting you know that Automattic/wp-calypso#29743 should have solved the below 🙂

    On WordPress.com, that block needs to be aware of whether the person has a plan to allow them to upload a video to VideoPress, otherwise you run into error messages like that, that don't explain that you could purchase a plan to be able to upload a video. https://videopress.com/v/1Piq5IAs

  14. self-assigned this
    on Feb 27, 2019
  15. mmtr commented on Feb 27, 2019

    @mmtr
    Member

    Closing this after completing the 2nd phase of the VideoPress extension for the block editor: pafL3P-cU-p2

    It'll be shipped as part of the Jetpack 7.1 release (Automattic/wp-calypso#31045).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Enhancement[Feature] VideoPress[Focus] Blocks[Pri] Normal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions