diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000000000000000000000000000000000000..7ae2ff54eb0cede979fe3dac8334882eb2b1f1c0
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,26 @@
+{
+    "name": "drupal/videojs",
+    "type": "drupal-module",
+    "description": "Video.js is a HTML5-based video player with a built-in Flash fallback for older browsers.",
+    "keywords": [
+        "Drupal"
+    ],
+    "license": "GPL-2.0-or-later",
+    "homepage": "https://www.drupal.org/project/videojs",
+    "authors": [
+        {
+            "name": "Your name here",
+            "homepage": "https://www.drupal.org/u/your_name_here",
+            "role": "Maintainer"
+        },
+        {
+            "name": "Contributors",
+            "homepage": "https://www.drupal.org/node/NID/committers",
+            "role": "Contributors"
+        }
+    ],
+    "support": {
+        "issues": "https://www.drupal.org/project/issues/videojs",
+        "source": "http://cgit.drupalcode.org/videojs"
+    }
+}
diff --git a/src/Plugin/Field/FieldFormatter/VideoJsPlayerFormatter.php b/src/Plugin/Field/FieldFormatter/VideoJsPlayerFormatter.php
index 7a87067cb9bf1eac2472e7d2f22b48de89adf249..c39555517a7a2017492a1db2e8b7973f56fd055e 100644
--- a/src/Plugin/Field/FieldFormatter/VideoJsPlayerFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/VideoJsPlayerFormatter.php
@@ -76,7 +76,7 @@ class VideoJsPlayerFormatter extends VideoJsPlayerFormatterBase implements Conta
       $configuration['label'],
       $configuration['view_mode'],
       $configuration['third_party_settings'],
-      $container->get('current_user')
+      $container->get('current_user'),
     );
   }
 
@@ -186,12 +186,12 @@ class VideoJsPlayerFormatter extends VideoJsPlayerFormatterBase implements Conta
     }
     return $elements;
   }
-  
+
   /**
    * {@inheritdoc}
    */
   public static function isApplicable(FieldDefinitionInterface $field_definition) {
-    $entity_form_display = entity_get_form_display($field_definition->getTargetEntityTypeId(), $field_definition->getTargetBundle(), 'default');
+    $entity_form_display = \Drupal::service('entity_display.repository')->getFormDisplay($field_definition->getTargetEntityTypeId(), $field_definition->getTargetBundle(), 'default');
     $widget = $entity_form_display->getRenderer($field_definition->getName());
     $widget_id = $widget->getBaseId();
     if(!$field_definition->isList()){
@@ -199,4 +199,4 @@ class VideoJsPlayerFormatter extends VideoJsPlayerFormatterBase implements Conta
     }
     return FALSE;
   }
-}
\ No newline at end of file
+}
diff --git a/src/Plugin/Field/FieldFormatter/VideoJsPlayerListFormatter.php b/src/Plugin/Field/FieldFormatter/VideoJsPlayerListFormatter.php
index fdf7245a362d2b1db905071fb8382e52749e077c..fccfd13800212171f24937516926c2b9a6ffff0d 100644
--- a/src/Plugin/Field/FieldFormatter/VideoJsPlayerListFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/VideoJsPlayerListFormatter.php
@@ -61,12 +61,12 @@ class VideoJsPlayerListFormatter extends VideoJsPlayerFormatter implements Conta
     );
     return $elements;
   }
-  
+
   /**
    * {@inheritdoc}
    */
   public static function isApplicable(FieldDefinitionInterface $field_definition) {
-    $entity_form_display = entity_get_form_display($field_definition->getTargetEntityTypeId(), $field_definition->getTargetBundle(), 'default');
+    $entity_form_display = \Drupal::service('entity_display.repository')->getFormDisplay($field_definition->getTargetEntityTypeId(), $field_definition->getTargetBundle(), 'default');
     $widget = $entity_form_display->getRenderer($field_definition->getName());
     $widget_id = $widget->getBaseId();
     if($field_definition->isList()){
@@ -74,4 +74,4 @@ class VideoJsPlayerListFormatter extends VideoJsPlayerFormatter implements Conta
     }
     return FALSE;
   }
-}
\ No newline at end of file
+}
diff --git a/videojs.info.yml b/videojs.info.yml
index 226620493d11c01245b05a8273adde54f674ebba..08c8f0be04c81736fb4a1dbf79d0416c8a422ca3 100644
--- a/videojs.info.yml
+++ b/videojs.info.yml
@@ -2,4 +2,5 @@ name: Video.js Player
 type: module
 description: Video.js is an HTML5 Video Player.
 package: Media
-core: 8.x
\ No newline at end of file
+core: 8.x
+core_version_requirement: ^8 || ^9