From 0acc230b0eaa5c45e88a3d31fbcfdb5bd5686dea Mon Sep 17 00:00:00 2001 From: Muhammad Arslan Abdul Rauf Date: Fri, 16 Jan 2026 17:22:32 +0500 Subject: [PATCH] fix: video_config runtime service added when loading for xBlock --- cms/djangoapps/contentstore/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index c79fa7a0feec..779a1f218a96 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -27,6 +27,7 @@ from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey, UsageKey, UsageKeyV2 from opaque_keys.edx.locator import BlockUsageLocator, LibraryContainerLocator, LibraryLocator +from openedx.core.djangoapps.video_config.services import VideoConfigService from openedx_events.content_authoring.data import DuplicatedXBlockData from openedx_events.content_authoring.signals import XBLOCK_DUPLICATED from openedx_events.learning.data import CourseNotificationData @@ -1314,7 +1315,8 @@ def load_services_for_studio(runtime, user): "settings": SettingsService(), "lti-configuration": ConfigurationService(CourseAllowPIISharingInLTIFlag), "teams_configuration": TeamsConfigurationService(), - "library_tools": LegacyLibraryToolsService(modulestore(), user.id) + "library_tools": LegacyLibraryToolsService(modulestore(), user.id), + "video_config": VideoConfigService(), } runtime._services.update(services) # lint-amnesty, pylint: disable=protected-access