Skip to content

feat: type PLAYLIST-TYPE and METHOD as PlaylistType and KeyMethod - #16

Merged
includeamin merged 1 commit into
mainfrom
feat/typed-playlist-type-and-method
Nov 21, 2026
Merged

includeamin merged 1 commit into
mainfrom
feat/typed-playlist-type-and-method

Conversation

@includeamin

Copy link
Copy Markdown
Owner

Summary

  • Add PlaylistType (Event, Vod); Tag::ExtXPlaylistType now holds it instead of a String
  • Add KeyMethod (None, Aes128, SampleAes, Other(String)); Key.method now uses it
  • Other keeps an unknown method intact on a round trip, and validation still reports it as ValidationError::InvalidKeyMethod
  • PlaylistBuilder::key, session_key and playlist_type take the new types instead of &str
  • KeyMethod implements From<&str>, Display and as_str(); PlaylistType implements FromStr and Display

Notes

Breaking for 0.x: the public field types and three builder signatures changed.

Test plan

  • cargo test (93 unit + 5 doc tests)
  • cargo clippy --all-targets
  • fuzz crate still compiles

@includeamin
includeamin merged commit 94996d2 into main Nov 21, 2026
2 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.

1 participant