Skip to content

Conversation

@kenmcgaugh
Copy link
Contributor

This adds a remove_media_source_atom and associated message handler in the media_actor to allow for removing media sources. Note that removing all media sources from a media item puts xSTUDIO into a bad state and so should be avoided. We implemented a version changing system like the following, acting on a media item:

  1. Get the current MT_IMAGE media_source.
  2. Set the media_reference URI of this media_source to point to a new version of the media.
  3. Use the above remove_media_source_atom message to remove all sources except the current one.
  4. Send message to session to trigger the gathering of additional sources based off of the new current source.

@tedwaine tedwaine force-pushed the develop branch 3 times, most recently from 4b886d5 to 8cde0df Compare November 21, 2025 15:39
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
@kenmcgaugh kenmcgaugh force-pushed the feature_remove_media_sources branch from 9f8489c to 0b01397 Compare November 25, 2025 17:41
@tedwaine tedwaine merged commit 180de28 into AcademySoftwareFoundation:develop Dec 16, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants