Streaming Media Views not compatible with Drupal 10

Created on 2 April 2024, 9 months ago
Updated 17 June 2024, 6 months ago

Greetings!

I installed Drupal using ddev on Ubuntu 22.04. Then I followed the instructions at https://www.drupal.org/project/streaming and can see Streaming and Streaming Media Views listed on the Extend page. However, next to Streaming Media Views I see:

"This version is not compatible with Drupal 10.2.4 and should be replaced.
Machine name: streaming_media_views
Requires: Drupal Core (^9) (incompatible with version 10.2.4) Image, File, Field, Media (disabled) User,System, crop (missing), Streaming (disabled), PHP-FFMpeg"

The https://packagist.org/packages/aminyazdanpanah/handling-file-uploads page says:

"This package is abandoned and no longer maintained. No replacement package was suggested."

Is there any way of fixing this problem? I installed Drupal, because my librarians want to stream the videos we have from our in-house server and I would be grateful if you could help me!

💬 Support request
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lolekbolek
  • 🇬🇧United Kingdom aaron.ferris

    Hello @lolekbolek

    Given this module isn't actively maintained, you may struggle to get a fix for this via the module itself.

    However - the root of your issue, I believe is down to the modules .info file.
    core_version_requirement: ^9

    Would need to read:
    core_version_requirement: ^9 | ^10

    So you could patch it with the above. The concern however would be that the module code itself (outside of the core_version_requirement) isn't compatible with Drupal 10, which would then need further code changes to make it compatible.

    Ive very quickly made this change locally and enabled the module, no immediate issues that I can see but tread carefully!

    Edit - noticed a similar issue here, with a merge request for this change already.

  • Many thanks, Aaron.

    I edited modules/streaming_media_views/streaming_media_views.info.yml, so this file now looks like this:

    name: Streaming Media Views
    description: 'A UI for Streaming by reusing Media and Views.'
    package: Media
    type: module
    core_version_requirement: ^9 | ^10
    
    libraries:
      - streaming_media_views/videojs
    
    dependencies:
      - drupal:image
      - drupal:media
      - drupal:crop
      - drupal:user
      - drupal:streaming

    However now, when I tried to enable both modules in Admin>Extend, I installed the first one, Streaming, but the Streaming Media Views checkbox is greyed out. Is it because it has "crop (missing)"?

    Streaming
    Streaming is a FFMpeg video streaming transcoder.
    Machine name: streaming
    Requires: PHP-FFMpeg
    Required by: Streaming Media Views (disabled)
    
    Streaming Media Views
    A UI for Streaming by reusing Media and Views.
    Machine name: streaming_media_views
    Requires: Image, File, Field, Media, User, System, crop (missing), PHP-FFMpeg
  • 🇬🇧United Kingdom aaron.ferris

    Hello @lolekbolek

    Thats right, for streaming_media_views it has a dependency on https://www.drupal.org/project/crop

  • Thank you again, @aaron.ferris!

    I installed crop and now I can select the Streaming Media Views checkbox!

  • 🇬🇧United Kingdom aaron.ferris

    Great, glad its working for you.

  • Status changed to Needs review 7 months ago
  • 🇮🇹Italy arturopanetta Grotteria (RC)

    I updated the dependencies and upgraded to videojs 8.

  • 🇬🇧United Kingdom aaron.ferris

    LGTM, think we can mark this fixed?

  • Status changed to Fixed 7 months ago
  • 🇮🇹Italy arturopanetta Grotteria (RC)

    ok @aaron.ferris, mark fixed, thanks :)

  • 🇬🇧United Kingdom aaron.ferris

    Thanks @arturopanetta!

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

Production build 0.71.5 2024