Problem/Motivation

Currently the module requires you to always upload the file via Drupal. This covers most usecases, but there are usecases where the video is already transcoded on a external server.

Proposed resolution

For this usecase add a 'video_url' field, per default hidden, which shows the corresponding URL.

Remaining tasks

Review
Commit

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2728241-2.patch4.19 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner created an issue. See original summary.

dawehner’s picture

Status: Active » Needs review
FileSize
4.19 KB

Here is the patch

Boobaa’s picture

Status: Needs review » Needs work

The patch accepts just about anything as the URL. It'd be better to accept only correct URLs. I think it's OK to introduce dependency on core's link.module for this.

dawehner’s picture

The patch accepts just about anything as the URL. It'd be better to accept only correct URLs. I think it's OK to introduce dependency on core's link.module for this.

Good point! The field type we want here though is not a link, but a URL, so we can leverage \Drupal\Core\Field\Plugin\Field\FieldType\UriItem which is in core. No requirement to the link module is needed.

  • yce committed 5b61a24 on 8.x-1.x
    Issue #2728241 by dawehner, yce: Make it possible to use an external URL
    
yce’s picture

Status: Needs work » Fixed

Thanks for the patch! I had to tune it a little though, so it would be more user friendly.
Commited.

yce’s picture

Status: Fixed » Closed (fixed)
dawehner’s picture

<3 Thank you a lot!