Skip to content

Remove branding related code from video xblock #425

Closed

Description

@salman2013

Rationale

As part of cleanup and simplification under video xblock extraction ticket, we want to remove this geography-specific CDN handling from video xblock.

As a first step we are removing the branding-related code from video block since it’s no longer being used.
We have plan to remove the specialized VIDEO_CDN_URL in the next phase.
When we do that, nothing will reference the branding code so we're removing it first.

Description

Currently, the platform includes logic to determine an alternative source for video playback based on the user’s locale. This was originally introduced to support geography-specific CDNs, such as the China CDN, but now it is not using anymore.

References code:
https://github.com/openedx/edx-platform/blob/df1d91e8ca7e83a7d30c61c730a8b9b75dbd033e/xmodule/video_block/video_block.py#L305

https://github.com/openedx/edx-platform/blob/df1d91e8ca7e83a7d30c61c730a8b9b75dbd033e/xmodule/video_block/video_block.py#L356

Activity

  1. moved this from 🆕 New to 🔖 Ready in Aximprovements Teamon Oct 15, 2025
  2. moved this from 🔖 Ready to 🏗 In progress in Aximprovements Teamon Oct 15, 2025
  3. salman2013 commented on Oct 17, 2025

    @salman2013
    Author

    As per my understanding, there are two things which need to be look,

    Branding addition for XuetangX

    Original Ticket when implemented: openedx/openedx-platform#6575

    There are multiple files across the frontend and backend models that would need updates if we decide to deprecate this functionality. Since I’m not yet fully sure about the ripple effects of removing it from the platform, I’d prefer to only remove the relevant code inside the video_block for now. This code will later be extracted into the xblock_contrib repository under the scope of this ticket.

    CDN url support or rewrite
    On two locations code is present in video_block one and second

    As per my understanding re-write urls functionality is also to serve the videos from edx-video.net CDN instead of CloudFlare.
    edx-video.net was edX's own CDN cache on top of CloudFlare.
    I am not removing this code as i believe we need to create a proper Depr ticket to remove it in detail.

  4. salman2013 commented on Oct 17, 2025

    @salman2013
    Author

    PR for this ticket: openedx/openedx-platform#37491

  5. moved this from 🏗 In progress to 👀 In review in Aximprovements Teamon Oct 17, 2025
  6. changed the title [-]Remove usage of geography-specific CDN (China) from video xblock[/-] [+]Remove branding related code from video xblock[/+] on Oct 31, 2025
  7. moved this from 👀 In review to ✅ Done in Aximprovements Teamon Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions