Skip to content

Conversation

soheibthriber
Copy link
Collaborator

Overview

This PR refactors the DASH/IOP module to remove direct XML/DOM parsing from segment validation logic. Instead, it introduces box classes (AVCCBox, HVCCBox, NALUnitBox, ELSTBox, TRUNBox, TFDTBox, SIDXBox) and corresponding getter methods in the RepresentationInterface, implemented in isoSegmentRepresentation.

Key changes

  • Adds new box classes in Utils/boxes/
  • Adds and implements getAVCCBoxes, getHVCCBoxes, getELSTBoxes, getTRUNBoxes, getTFDTBoxes, getSIDXBoxes
  • Updates validateSegmentCommon.php and validateSegmentOnDemand.php to use the new getters and box objects
  • Updates validateSegment.php to pass the $representation object instead of XML
  • Updates module.php to use the new function signatures and validation flow

Motivation

This aligns the DASH/IOP module with the refactored modules.

Notes

  • All XML/DOM parsing is now encapsulated in the representation implementation.

…rface and box classes

- Add AVCCBox, HVCCBox, NALUnitBox, ELSTBox, TRUNBox, TFDTBox, and SIDXBox in Utils/boxes/
- Add getAVCCBoxes, getHVCCBoxes, getELSTBoxes, getTRUNBoxes, getTFDTBoxes, getSIDXBoxes to RepresentationInterface and implement in isoSegmentRepresentation
- Refactor validateSegmentCommon.php and validateSegmentOnDemand.php to use representation getters instead of direct XML/DOM parsing
- Refactor validateSegment.php to pass representation instead of XML
- Update module.php to use new function signatures
@soheibthriber soheibthriber requested a review from Phencys May 23, 2025 07:53
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.

1 participant