Hello!
Will there be a version that works with the Video Embed Field 8.x-2.0 which works with the core Media?

As I tried to install the 8.x-1.2-beta1 in a project that is using core media and Video Embed Field 8.x-2.0 I got this message from composer:

- drupal/video_embed_spotify 1.x-dev requires drupal/video_embed_field ~1.5 -> satisfiable by drupal/video_embed_field[1.x-dev].
- drupal/video_embed_spotify 1.2.0-beta1 requires drupal/video_embed_field ~1.5 -> satisfiable by drupal/video_embed_field[1.x-dev].
- Conclusion: don't install drupal/video_embed_field 1.x-dev
- Installation request for drupal/video_embed_spotify ^1.2-beta1 -> satisfiable by drupal/video_embed_spotify[1.x-dev, 1.2.0-beta1].

(Video Embed Field 8.x-1.5 is compatible with the old Media Entity )

Thanks

Comments

hstrindb created an issue. See original summary.

sleitner’s picture

Hello @hstrindb,

there will be no version of this module with core media support, simply because the module name includes "video embed" and this would be misleading with core media support. May be there will be a separate module in the future.

sleitner’s picture

Status: Active » Closed (won't fix)

Take a look at this issue at Media entity Spotify https://www.drupal.org/project/media_entity_spotify/issues/2912612

sleitner’s picture

Status: Closed (won't fix) » Needs review

@hstrindb, The plugin API in 2.x did not change for the used functions in this plugin. Please try 1.2-beta2 to continue using Video Embed Field

sleitner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

hs@henrikstrindberg.se’s picture

Can't make it work as intended but there is a workaround:
#4 After installing the 8.x-1.2-beta1 on a fresh D8.7.5 it is recognized by Video Embed Field 8.x2-2 (the Spotify checkbox is there).
But when entering a link to a Spotify track there is this error message:

Could not find a video provider to handle the given URL

This is the Spotify URL that I tried:
https://open.spotify.com/track/1F6hgVyX5T5zIlv8tNgXHt?si=ZWGo4xnvR2GkmSM...

#3 I have also tested the Media entity Spotify and I can't make that one work. So there is no module for Spotify to work with core Media.

A workaround is to use this module to use core media. But instead of using the url to a Spotify track I add a formatted textfield for the Spotify embed code (full html and no editor, Better Formats to exclude other text formats), disable the URL-field in both the Manage Display Form and Manage Display.

Thanks

sleitner’s picture

Title: Version for core media » new URL parameter (was: Version for core media)
Version: 8.x-1.2-beta1 » 8.x-1.x-dev
Category: Feature request » Bug report
Status: Closed (fixed) » Needs review

Spotify introduced a new optional parameter which didn't match the URL regular expression. In the Media Entity Spotify module, this should be the same problem.

Please use the latest 8.x-1.x-dev version with the new regular expression.

hs@henrikstrindberg.se’s picture

Tested the 1.x-dev version and it works!
Many thanks!

sleitner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.